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

Gets the collection of child folders.

IList<ICodeSnippetFolder> Folders { get; }

Property Value

System.Collections.Generic.IList<ICodeSnippetFolder>:

The collection of child folders.

Items

Gets the collection of code snippet metadata items in the folder.

IList<ICodeSnippetMetadata> Items { get; }

Property Value

System.Collections.Generic.IList<ICodeSnippetMetadata>:

The collection of code snippet metadata items in the folder.

Name

Gets the name of the folder.

string Name { get; }

Property Value

System.String:

The name of the folder.

Tag

Gets or sets the object that contains user-defined data about the object.

object Tag { get; set; }

Property Value

System.Object:

An System.Object that contains user-defined data about the object. The default is null.

Remarks

Any type derived from the System.Object class can be assigned to this property.

Methods

FindItemByShortcut(String, Boolean)

Recursively searches for an item with the specified shortcut.

ICodeSnippetMetadata FindItemByShortcut(string shortcut, bool isCaseSensitive)
Parameter Type Description
shortcut System.String

The shortcut text.

isCaseSensitive System.Boolean

Whether the comparison should be case-sensitive.

Returns

ICodeSnippetMetadata:

The ICodeSnippetMetadata that was found, if any.