In This Article

ICodeSnippetMetadata Interface

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

public interface ICodeSnippetMetadata

Properties

CodeKind

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

CodeSnippetKind CodeKind { get; }

Property Value

CodeSnippetKind:

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

CodeLanguage

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

string CodeLanguage { get; }

Property Value

string:

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

Description

Gets descriptive information about the code snippet contents.

string Description { get; }

Property Value

string:

Descriptive information about the code snippet contents.

Shortcut

Gets the shortcut text used to insert the code snippet.

string Shortcut { get; }

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.

CodeSnippetTypes SnippetTypes { get; }

Property Value

CodeSnippetTypes:

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

Title

Gets the code snippet title.

string Title { get; }

Property Value

string:

The code snippet title.

Methods

GetCodeSnippet()

Returns the full associated ICodeSnippet.

ICodeSnippet GetCodeSnippet()

Returns

ICodeSnippet:

The full associated ICodeSnippet.