Condividi tramite


IVsImmediateStatementCompletion.InstallStatementCompletion Method

Informs the language service that it must add or remove its IVsTextViewFilter from the command filter chain for the command window’IVsTextViews IVsTextView.

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

Syntax

'Declaration
Function InstallStatementCompletion ( _
    fInstall As Integer, _
    pCmdWinView As IVsTextView, _
    fInitialEnable As Integer _
) As Integer
int InstallStatementCompletion(
    int fInstall,
    IVsTextView pCmdWinView,
    int fInitialEnable
)
int InstallStatementCompletion(
    [InAttribute] int fInstall, 
    [InAttribute] IVsTextView^ pCmdWinView, 
    [InAttribute] int fInitialEnable
)
abstract InstallStatementCompletion : 
        fInstall:int * 
        pCmdWinView:IVsTextView * 
        fInitialEnable:int -> int
function InstallStatementCompletion(
    fInstall : int, 
    pCmdWinView : IVsTextView, 
    fInitialEnable : int
) : int

Parameters

  • fInstall
    Type: System.Int32

    [in] Flag that determines whether to add or remove the filter. Value is true to add.

  • fInitialEnable
    Type: System.Int32

    [in] Flag that determines whether statement completion should be active upon return from this method. Value is true for active statement completion. If the filter is being removed, this parameter is ignored.

Return Value

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

Remarks

Called by the command window when the debugger sets an active language service.

.NET Framework Security

See Also

Reference

IVsImmediateStatementCompletion Interface

Microsoft.VisualStudio.TextManager.Interop Namespace