Share via


VsTextViewClass.AddCommandFilter Method

Adds a command filter to the existing chain of command filters.

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

Syntax

'Declaration
Public Overridable Function AddCommandFilter ( _
    pNewCmdTarg As IOleCommandTarget, _
    <OutAttribute> ByRef ppNextCmdTarg As IOleCommandTarget _
) As Integer
public virtual int AddCommandFilter(
    IOleCommandTarget pNewCmdTarg,
    out IOleCommandTarget ppNextCmdTarg
)
public:
virtual int AddCommandFilter(
    [InAttribute] IOleCommandTarget^ pNewCmdTarg, 
    [OutAttribute] IOleCommandTarget^% ppNextCmdTarg
)
abstract AddCommandFilter : 
        pNewCmdTarg:IOleCommandTarget * 
        ppNextCmdTarg:IOleCommandTarget byref -> int  
override AddCommandFilter : 
        pNewCmdTarg:IOleCommandTarget * 
        ppNextCmdTarg:IOleCommandTarget byref -> int
public function AddCommandFilter(
    pNewCmdTarg : IOleCommandTarget, 
    ppNextCmdTarg : IOleCommandTarget
) : int

Parameters

Return Value

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

Implements

IVsTextView.AddCommandFilter(IOleCommandTarget, IOleCommandTarget%)

.NET Framework Security

See Also

Reference

VsTextViewClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace