VsExpansionManagerClass 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.VsExpansionManagerClass
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'宣告
<ClassInterfaceAttribute()> _
<GuidAttribute("4970C2BC-AF33-4A73-A34F-18B0584C40E4")> _
Public Class VsExpansionManagerClass _
Implements IVsExpansionManager, VsExpansionManager
[ClassInterfaceAttribute()]
[GuidAttribute("4970C2BC-AF33-4A73-A34F-18B0584C40E4")]
public class VsExpansionManagerClass : IVsExpansionManager,
VsExpansionManager
[ClassInterfaceAttribute()]
[GuidAttribute(L"4970C2BC-AF33-4A73-A34F-18B0584C40E4")]
public ref class VsExpansionManagerClass : IVsExpansionManager,
VsExpansionManager
[<ClassInterfaceAttribute()>]
[<GuidAttribute("4970C2BC-AF33-4A73-A34F-18B0584C40E4")>]
type VsExpansionManagerClass =
class
interface IVsExpansionManager
interface VsExpansionManager
end
public class VsExpansionManagerClass implements IVsExpansionManager, VsExpansionManager
The VsExpansionManagerClass type exposes the following members.
Constructors
Name | Description | |
---|---|---|
VsExpansionManagerClass | Creates a new instance of the expansion manager. |
Top
Methods
Name | Description | |
---|---|---|
EnumerateExpansions | Retrieves a list of code snippets for the specified coding language. See EnumerateExpansions. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetExpansionByShortcut | Retrieves the title and path to a snippet given its shortcut name. See GetExpansionByShortcut. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetSnippetShortCutKeybindingState | Infrastructure. Determines if a key has been bound to the "Invoke Snippet From Shortcut" command. See GetSnippetShortCutKeybindingState. | |
GetTokenPath | Returns the path to the specified location. See GetTokenPath | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InvokeInsertionUI | Shows an IntelliSense list of code snippets that can be inserted into the source through the provided IVsExpansionClient object.See InvokeInsertionUI. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
To create an object of this class, 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.