Share via


VsExpansionPackageClass Class

Definition

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

public ref class VsExpansionPackageClass : Microsoft::VisualStudio::TextManager::Interop::VsExpansionPackage
[Windows::Foundation::Metadata::WebHostHidden]
class VsExpansionPackageClass : Microsoft::VisualStudio::TextManager::Interop::VsExpansionPackage
[System.Runtime.InteropServices.ClassInterface(0)]
[System.Runtime.InteropServices.Guid("0B680757-2C29-4531-80FA-535A5178AA98")]
[System.Runtime.InteropServices.TypeLibType(2)]
public class VsExpansionPackageClass : Microsoft.VisualStudio.TextManager.Interop.VsExpansionPackage
[System.Runtime.InteropServices.Guid("0B680757-2C29-4531-80FA-535A5178AA98")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public class VsExpansionPackageClass : Microsoft.VisualStudio.TextManager.Interop.VsExpansionPackage
[<System.Runtime.InteropServices.ClassInterface(0)>]
[<System.Runtime.InteropServices.Guid("0B680757-2C29-4531-80FA-535A5178AA98")>]
[<System.Runtime.InteropServices.TypeLibType(2)>]
type VsExpansionPackageClass = class
    interface IVsExpansionManager
    interface VsExpansionPackage
[<System.Runtime.InteropServices.Guid("0B680757-2C29-4531-80FA-535A5178AA98")>]
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type VsExpansionPackageClass = class
    interface VsExpansionPackage
    interface IVsExpansionManager
Public Class VsExpansionPackageClass
Implements VsExpansionPackage
Inheritance
VsExpansionPackageClass
Attributes
Implements

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.

Constructors

VsExpansionPackageClass()

Initializes a new instance of VsExpansionPackageClass.

Methods

EnumerateExpansions(Guid, Int32, String[], Int32, Int32, Int32, IVsExpansionEnumeration)

Retrieves a list of code snippets for the specified coding language. See EnumerateExpansions(Guid, Int32, String[], Int32, Int32, Int32, IVsExpansionEnumeration).

GetExpansionByShortcut(IVsExpansionClient, Guid, String, IVsTextView, TextSpan[], Int32, String, String)

Retrieves the title and path to a snippet given its shortcut name. See GetExpansionByShortcut(IVsExpansionClient, Guid, String, IVsTextView, TextSpan[], Int32, String, String).

GetSnippetShortCutKeybindingState(Int32)

Determines if a key has been bound to the "Invoke Snippet From Shortcut" command. See GetSnippetShortCutKeybindingState(Int32).

GetTokenPath(UInt32, String)

Returns the path to the specified location. See GetTokenPath(UInt32, String).

InvokeInsertionUI(IVsTextView, IVsExpansionClient, Guid, String[], Int32, Int32, String[], Int32, Int32, String, String)

Shows an IntelliSense list of code snippets that can be inserted into the source through the provided IVsExpansionClient object. See InvokeInsertionUI(IVsTextView, IVsExpansionClient, Guid, String[], Int32, Int32, String[], Int32, Int32, String, String).

Applies to