Udostępnij za pośrednictwem


IVsTextView.RemoveCommandFilter(IOleCommandTarget) Method

Definition

Removes a command filter from the chain of command filters.

public:
 int RemoveCommandFilter(Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ pCmdTarg);
public:
 int RemoveCommandFilter(Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ pCmdTarg);
int RemoveCommandFilter(Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget const & pCmdTarg);
public int RemoveCommandFilter (Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget pCmdTarg);
abstract member RemoveCommandFilter : Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget -> int
Public Function RemoveCommandFilter (pCmdTarg As IOleCommandTarget) As Integer

Parameters

pCmdTarg
IOleCommandTarget

[in] Pointer to a command filter to remove.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextView::RemoveCommandFilter(  
   [in] IOleCommandTarget *pCmdTarg  
);  

Applies to