Partager via


VsExpansionPackageClass.InvokeInsertionUI Method

Shows an IntelliSense list of code snippets that can be inserted into the source through the provided IVsExpansionClient object. See InvokeInsertionUI.

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

Syntax

'Déclaration
Public Overridable Function InvokeInsertionUI ( _
    pView As IVsTextView, _
    pClient As IVsExpansionClient, _
    guidLang As Guid, _
    bstrTypes As String(), _
    iCountTypes As Integer, _
    fIncludeNULLType As Integer, _
    bstrKinds As String(), _
    iCountKinds As Integer, _
    fIncludeNULLKind As Integer, _
    bstrPrefixText As String, _
    bstrCompletionChar As String _
) As Integer
public virtual int InvokeInsertionUI(
    IVsTextView pView,
    IVsExpansionClient pClient,
    Guid guidLang,
    string[] bstrTypes,
    int iCountTypes,
    int fIncludeNULLType,
    string[] bstrKinds,
    int iCountKinds,
    int fIncludeNULLKind,
    string bstrPrefixText,
    string bstrCompletionChar
)
public:
virtual int InvokeInsertionUI(
    [InAttribute] IVsTextView^ pView, 
    [InAttribute] IVsExpansionClient^ pClient, 
    [InAttribute] Guid guidLang, 
    [InAttribute] array<String^>^ bstrTypes, 
    [InAttribute] int iCountTypes, 
    [InAttribute] int fIncludeNULLType, 
    [InAttribute] array<String^>^ bstrKinds, 
    [InAttribute] int iCountKinds, 
    [InAttribute] int fIncludeNULLKind, 
    [InAttribute] String^ bstrPrefixText, 
    [InAttribute] String^ bstrCompletionChar
)
abstract InvokeInsertionUI : 
        pView:IVsTextView * 
        pClient:IVsExpansionClient * 
        guidLang:Guid * 
        bstrTypes:string[] * 
        iCountTypes:int * 
        fIncludeNULLType:int * 
        bstrKinds:string[] * 
        iCountKinds:int * 
        fIncludeNULLKind:int * 
        bstrPrefixText:string * 
        bstrCompletionChar:string -> int 
override InvokeInsertionUI : 
        pView:IVsTextView * 
        pClient:IVsExpansionClient * 
        guidLang:Guid * 
        bstrTypes:string[] * 
        iCountTypes:int * 
        fIncludeNULLType:int * 
        bstrKinds:string[] * 
        iCountKinds:int * 
        fIncludeNULLKind:int * 
        bstrPrefixText:string * 
        bstrCompletionChar:string -> int 
public function InvokeInsertionUI(
    pView : IVsTextView, 
    pClient : IVsExpansionClient, 
    guidLang : Guid, 
    bstrTypes : String[], 
    iCountTypes : int, 
    fIncludeNULLType : int, 
    bstrKinds : String[], 
    iCountKinds : int, 
    fIncludeNULLKind : int, 
    bstrPrefixText : String, 
    bstrCompletionChar : String
) : int

Parameters

  • guidLang
    Type: System.Guid
    [in] The GUID of the coding language (typically, this is the language service GUID).
  • bstrTypes
    Type: array<System.String[]
    [in] An array strings specifying snippet types to display. This can be a null value if iCountTypes is 0.
  • iCountTypes
    Type: System.Int32
    [in] The number of types specified in the bstrTypes array. If this is 0, all types are displayed. [in]
  • fIncludeNULLType
    Type: System.Int32
    [in] Non-zero (TRUE) if to include code snippets with "empty" types in the bstrTypes list (this parameter is ignored if iCountTypes is 0).
  • bstrKinds
    Type: array<System.String[]
    [in] An array of strings specifying the snippet kinds to display. This can be a null value if iCountKinds is 0.
  • iCountKinds
    Type: System.Int32
    [in] The number of kinds specified in the bstrKinds array. If this is 0, all kinds are displayed.
  • fIncludeNULLKind
    Type: System.Int32
    [in] Non-zero (TRUE) if to include code snippets with "empty" kinds in the bstrKinds list (this parameter is ignored if iCountKinds is 0).
  • bstrPrefixText
    Type: System.String
    [in] A string containing the text to show in the prompt.
  • bstrCompletionChar
    Type: System.String
    [in] A character that, when typed, inserts the currently selected snippet and closes the UI. If this is a null value or an empty string, typing the Enter key is the only way to insert a selected snippet.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsExpansionManager.InvokeInsertionUI(IVsTextView, IVsExpansionClient, Guid, array<String[], Int32, Int32, array<String[], Int32, Int32, String, String)

.NET Framework Security

See Also

Reference

VsExpansionPackageClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace