共用方式為


IVsTextView.RemoveCommandFilter 方法

鏈結的命令的篩選器會移除命令過濾器。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
Function RemoveCommandFilter ( _
    pCmdTarg As IOleCommandTarget _
) As Integer
int RemoveCommandFilter(
    IOleCommandTarget pCmdTarg
)
int RemoveCommandFilter(
    [InAttribute] IOleCommandTarget^ pCmdTarg
)
abstract RemoveCommandFilter : 
        pCmdTarg:IOleCommandTarget -> int
function RemoveCommandFilter(
    pCmdTarg : IOleCommandTarget
) : int

參數

  • pCmdTarg
    類型:IOleCommandTarget

    [in]若要移除的命令篩選條件的指標。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

COM 簽章

從 textmgr.idl:

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

.NET Framework 安全性

請參閱

參考

IVsTextView 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間