IVsImmediateStatementCompletion2.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.
pCmdWinView
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView[in] The text view containing the command filter chain to be modified.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.