Método VsTextViewClass.AddCommandFilter
Adiciona um filtro de comando para os filtros existentes da cadeia de comando.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxe
'Declaração
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
Parâmetros
pNewCmdTarg
Tipo: IOleCommandTarget[in] Ponteiro para o novo filtro de comando (IOleCommandTarget) para adicionar a cadeia de filtro de comando.
ppNextCmdTarg
Tipo: IOleCommandTarget%[out] Ponteiro para um filtro de comando usado para manipular os comandos não tratados pelo pNewCmdTarg filtro de comando.
Valor de retorno
Tipo: Int32
Implementações
IVsTextView.AddCommandFilter(IOleCommandTarget, IOleCommandTarget%)
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.