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
'Usage
Dim instance As VsExpansion 
Dim value As String 

value = instance.shortcut 

instance.shortcut = value
public string shortcut
public:
String^ shortcut
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

VsExpansion Members

Microsoft.VisualStudio.TextManager.Interop Namespace