Compartir a través de


VsExpansionPackageClass Class

Represents the expansion manager, which knows how to find and display lists of code snippets for a particular coding language.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsExpansionPackageClass

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

Syntax

'Declaration
<ClassInterfaceAttribute()> _
<GuidAttribute("0B680757-2C29-4531-80FA-535A5178AA98")> _
Public Class VsExpansionPackageClass _
    Implements IVsExpansionManager, VsExpansionPackage
[ClassInterfaceAttribute()]
[GuidAttribute("0B680757-2C29-4531-80FA-535A5178AA98")]
public class VsExpansionPackageClass : IVsExpansionManager, 
    VsExpansionPackage
[ClassInterfaceAttribute()]
[GuidAttribute(L"0B680757-2C29-4531-80FA-535A5178AA98")]
public ref class VsExpansionPackageClass : IVsExpansionManager, 
    VsExpansionPackage
[<ClassInterfaceAttribute()>]
[<GuidAttribute("0B680757-2C29-4531-80FA-535A5178AA98")>]
type VsExpansionPackageClass =  
    class 
        interface IVsExpansionManager 
        interface VsExpansionPackage 
    end
public class VsExpansionPackageClass implements IVsExpansionManager, VsExpansionPackage

The VsExpansionPackageClass type exposes the following members.

Constructors

  Name Description
Public method VsExpansionPackageClass Initializes a new instance of VsExpansionPackageClass.

Top

Methods

  Name Description
Public method EnumerateExpansions Retrieves a list of code snippets for the specified coding language. See EnumerateExpansions.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetExpansionByShortcut Retrieves the title and path to a snippet given its shortcut name. See GetExpansionByShortcut.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetSnippetShortCutKeybindingState Determines if a key has been bound to the "Invoke Snippet From Shortcut" command. See GetSnippetShortCutKeybindingState.
Public method GetTokenPath Returns the path to the specified location. See GetTokenPath.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InvokeInsertionUI Shows an IntelliSense list of code snippets that can be inserted into the source through the provided IVsExpansionClient object. See InvokeInsertionUI.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace