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 a new instance of the CodeSnippetMetadataBase class.

protected CodeSnippetMetadataBase()

Properties

CodeKind

Gets or sets a CodeSnippetKind indicating the kind of code contained by the snippet.

public CodeSnippetKind CodeKind { get; set; }

Property Value

CodeSnippetKind:

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

CodeLanguage

Gets or sets the language in which the snippet's code is written.

public string CodeLanguage { get; set; }

Property Value

string:

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

Description

Gets or sets descriptive information about the code snippet contents.

public string Description { get; set; }

Property Value

string:

Descriptive information about the code snippet contents.

Shortcut

Gets or sets the shortcut text used to insert the code snippet.

public string Shortcut { get; set; }

Property Value

string:

The shortcut text used to insert the code snippet.

SnippetTypes

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

public CodeSnippetTypes SnippetTypes { get; set; }

Property Value

CodeSnippetTypes:

A CodeSnippetTypes that specifies the types of actions that can be performed by the code snippet.

Title

Gets or sets the code snippet title.

public string Title { get; set; }

Property Value

string:

The code snippet title.

Methods

GetCodeSnippet()

Returns the full associated ICodeSnippet.

public abstract ICodeSnippet GetCodeSnippet()

Returns

ICodeSnippet:

The full associated ICodeSnippet.

Inherited Members