Share via


VsExpansion.shortcut Field

Provides the shortcut name for the code snippet.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
Public shortcut As String
public string shortcut
public:
String^ shortcut
val mutable shortcut: string
public var shortcut : String

Remarks

COM Signature

From textmgr2.idl:

   BSTR  shortcut;

The shortcut name can be passed to the GetExpansionByShortcut method in the IVsExpansionManager interface to obtain the title and path for the code snippet. The title and path can then be passed to the InsertNamedExpansion method in the IVsExpansion interface to insert the specified code snippet.

.NET Framework Security

See Also

Reference

VsExpansion Structure

Microsoft.VisualStudio.TextManager.Interop Namespace