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

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

CodeSnippetKind CodeKind { get; }

Property Value

CodeSnippetKind

CodeLanguage

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

string? CodeLanguage { get; }

Property Value

string

Description

Descriptive information about the code snippet contents.

string? Description { get; }

Property Value

string

Shortcut

The shortcut text used to insert the code snippet.

string? Shortcut { get; }

Property Value

string

SnippetTypes

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

CodeSnippetTypes SnippetTypes { get; }

Property Value

CodeSnippetTypes

Title

The code snippet title.

string? Title { get; }

Property Value

string

Methods

GetCodeSnippet()

Returns the full associated ICodeSnippet.

ICodeSnippet? GetCodeSnippet()

Returns

ICodeSnippet

Extension Methods