CodeSnippetFile Class
Represents an object that can list header information about an ICodeSnippet and can provide the full snippet on demand.
public class CodeSnippetFile : CodeSnippetMetadataBase, ICodeSnippetMetadata
- Inheritance:
- object CodeSnippetMetadataBase object
- Implements:
- ICodeSnippetMetadata
Constructors
CodeSnippetFile(string, ICodeSnippet)
Initializes a new instance of the CodeSnippetFile
class.
public CodeSnippetFile(string path, ICodeSnippet codeSnippet)
Parameter | Type | Description |
---|---|---|
path | string | The path to the code snippet file. |
codeSnippet | ICodeSnippet | The ICodeSnippet from which to initialize the provider. |
Properties
Path
Gets the path to the code snippet file.
Methods
GetCodeSnippet()
Returns the full associated ICodeSnippet.
public override ICodeSnippet GetCodeSnippet()
Returns
- ICodeSnippet:
The full associated ICodeSnippet.
Inherited Members
- CodeSnippetMetadataBase.CodeKind
- CodeSnippetMetadataBase.CodeLanguage
- CodeSnippetMetadataBase.Description
- CodeSnippetMetadataBase.Shortcut
- CodeSnippetMetadataBase.SnippetTypes
- CodeSnippetMetadataBase.Title
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()