In This Article

ICodeSnippetFolder Interface

Provides the base requirements for a folder that can contain ICodeSnippetProvider objects and other child folders.

public interface ICodeSnippetFolder

Properties

Folders

The collection of child folders.

IList<ICodeSnippetFolder> Folders { get; }

Property Value

IList<ICodeSnippetFolder>

Items

The collection of code snippet metadata items in the folder.

IList<ICodeSnippetMetadata> Items { get; }

Property Value

IList<ICodeSnippetMetadata>

Name

The name of the folder.

string Name { get; }

Property Value

string

Tag

The object that contains user-defined data about the object.

object? Tag { get; set; }

Property Value

object

Methods

FindItemByShortcut(string, bool)

Recursively searches for an item with the specified shortcut.

ICodeSnippetMetadata? FindItemByShortcut(string shortcut, bool isCaseSensitive)
Parameter Type Description
shortcut string

The shortcut text.

isCaseSensitive bool

Whether the comparison should be case-sensitive.

Returns

ICodeSnippetMetadata:

The ICodeSnippetMetadata that was found, if any.

Extension Methods