In This Article

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.

public string Path { get; }

Property Value

string:

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