Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Usage
Dim instance As VsTextViewClass
Dim pNewCmdTarg As IOleCommandTarget
Dim ppNextCmdTarg As IOleCommandTarget
Dim returnValue As Integer
returnValue = instance.AddCommandFilter(pNewCmdTarg, _
ppNextCmdTarg)
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
- pNewCmdTarg
Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget
[in] Pointer to the new command filter (IOleCommandTarget) to add to the command filter chain.
- ppNextCmdTarg
Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget%
[out] Pointer to a command filter used to handle commands not dealt with by the pNewCmdTarg command filter.
Return Value
Type: System.Int32
Implements
IVsTextView.AddCommandFilter(IOleCommandTarget, IOleCommandTarget%)
.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.