CodeSnippet Class
Represents a code snippet.
public class CodeSnippet : ICodeSnippet, ICodeSnippetMetadata
- Inheritance:
- object object
- Implements:
- ICodeSnippet ICodeSnippetMetadata
Constructors
CodeSnippet()
Initializes an instance of the class.
public CodeSnippet()
Properties
Author
The name of the code snippet author.
CodeDelimiter
The character used to describe literals and objects in the code.
CodeKind
A CodeSnippetKind indicating the kind of code contained by the snippet.
CodeLanguage
The language in which the snippet's code is written.
CodeText
The code that is inserted when the code snippet is activated.
Declarations
The collection of declarations.
public IList<ICodeSnippetDeclaration> Declarations { get; }
Property Value
Description
Descriptive information about the code snippet contents.
HelpUrl
A URL that provides more information about the code snippet.
ImportedNamespaces
The collection of imported namespaces.
Keywords
The collection of keywords that describe the code snippet.
References
The collection of assembly references.
public IList<ICodeSnippetAssemblyReference> References { get; }
Property Value
Shortcut
The shortcut text used to insert the code snippet.
SnippetTypes
The types of actions that can be performed by the code snippet.
Tag
The object that contains user-defined data about the object.
Title
The code snippet title.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()