IVsRegisterPriorityCommandTarget.RegisterPriorityCommandTarget(UInt32, IOleCommandTarget, UInt32) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Registra um novo destino de comando ( IOleCommandTarget ).
public:
int RegisterPriorityCommandTarget(System::UInt32 dwReserved, Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ pCmdTrgt, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int RegisterPriorityCommandTarget(unsigned int dwReserved, Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget const & pCmdTrgt, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int RegisterPriorityCommandTarget (uint dwReserved, Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget pCmdTrgt, out uint pdwCookie);
abstract member RegisterPriorityCommandTarget : uint32 * Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget * uint32 -> int
Public Function RegisterPriorityCommandTarget (dwReserved As UInteger, pCmdTrgt As IOleCommandTarget, ByRef pdwCookie As UInteger) As Integer
Parâmetros
- dwReserved
- UInt32
no Deve ser zero.
- pCmdTrgt
- IOleCommandTarget
no Ponteiro para a IOleCommandTarget interface a ser registrada.
- pdwCookie
- UInt32
fora Ponteiro para um cookie (VSCOOKIE). Usado ao cancelar o registro do destino de comando.
Retornos
Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.
Comentários
O método adiciona o novo destino de comando à frente da lista.
Assinatura COM
De VSShell. idl:
[C++]
HRESULT IVsRegisterPriorityCommandTarget::RegisterPriorityCommandTarget(
[in] DWORD dwReserved,
[in] IOleCommandTarget *pCmdTrgt,
[out,retval] VSCOOKIE *pdwCookie
);