In This Article

CodeSnippetMetadataBase Class

Provides the abstract base class for an object that contains metadata information about an ICodeSnippet and can provide the full snippet on demand.

public abstract class CodeSnippetMetadataBase : ICodeSnippetMetadata
Inheritance:
object object
Derived:
CodeSnippetFile
Implements:
ICodeSnippetMetadata

Constructors

CodeSnippetMetadataBase()

Initializes an instance of the class.

protected CodeSnippetMetadataBase()

Properties

CodeKind

A CodeSnippetKind indicating the kind of code contained by the snippet.

public CodeSnippetKind CodeKind { get; set; }

Property Value

CodeSnippetKind

CodeLanguage

The language in which the snippet's code is written.

public string? CodeLanguage { get; set; }

Property Value

string

Description

Descriptive information about the code snippet contents.

public string? Description { get; set; }

Property Value

string

Shortcut

The shortcut text used to insert the code snippet.

public string? Shortcut { get; set; }

Property Value

string

SnippetTypes

The types of actions that can be performed by the code snippet.

public CodeSnippetTypes SnippetTypes { get; set; }

Property Value

CodeSnippetTypes

Title

The code snippet title.

public string? Title { get; set; }

Property Value

string

Methods

GetCodeSnippet()

Returns the full associated ICodeSnippet.

public abstract ICodeSnippet? GetCodeSnippet()

Returns

ICodeSnippet

Inherited Members

Extension Methods