Freigeben über


IVsImmediateStatementCompletion2.InstallStatementCompletion Method

Definition

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

public:
 int InstallStatementCompletion(int fInstall, Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pCmdWinView, int fInitialEnable);
public:
 int InstallStatementCompletion(int fInstall, Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pCmdWinView, int fInitialEnable);
int InstallStatementCompletion(int fInstall, Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & pCmdWinView, int fInitialEnable);
public int InstallStatementCompletion (int fInstall, Microsoft.VisualStudio.TextManager.Interop.IVsTextView pCmdWinView, int fInitialEnable);
abstract member InstallStatementCompletion : int * Microsoft.VisualStudio.TextManager.Interop.IVsTextView * int -> int
Public Function InstallStatementCompletion (fInstall As Integer, pCmdWinView As IVsTextView, fInitialEnable As Integer) As Integer

Parameters

fInstall
Int32

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

pCmdWinView
IVsTextView

[in] The text view containing the command filter chain to be modified.

fInitialEnable
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.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to