Método IVsRegisterPriorityCommandTarget.RegisterPriorityCommandTarget (UInt32, IOleCommandTarget, UInt32)

 

Registra um novo destino de comando (IOleCommandTarget).

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (em Microsoft.VisualStudio.Shell.Interop.dll)

Sintaxe

int RegisterPriorityCommandTarget(
    uint dwReserved,
    IOleCommandTarget pCmdTrgt,
    out uint pdwCookie
)
int RegisterPriorityCommandTarget(
    unsigned int dwReserved,
    IOleCommandTarget^ pCmdTrgt,
    [OutAttribute] unsigned int% pdwCookie
)
abstract RegisterPriorityCommandTarget : 
        dwReserved:uint32 *
        pCmdTrgt:IOleCommandTarget *
        pdwCookie:uint32 byref -> int
Function RegisterPriorityCommandTarget (
    dwReserved As UInteger,
    pCmdTrgt As IOleCommandTarget,
    <OutAttribute> ByRef pdwCookie As UInteger
) As Integer

Parâmetros

  • dwReserved
    [in] Deve ser zero.
  • pdwCookie
    [out] Ponteiro para um cookie (VSCOOKIE).Usado quando o cancelamento do registro do seu destino.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

O método adiciona o novo destino de comando para a frente da lista.

COM assinatura

De vsshell.idl:

[C++]

HRESULT IVsRegisterPriorityCommandTarget::RegisterPriorityCommandTarget(
   [in] DWORD dwReserved, 
   [in] IOleCommandTarget *pCmdTrgt, 
   [out,retval] VSCOOKIE *pdwCookie
);

Consulte também

Interface IVsRegisterPriorityCommandTarget
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo