Partilhar via


Método IVsSmartTagData.GetContextMenuInfo

Obtém informações sobre o menu de contexto.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxe

'Declaração
Function GetContextMenuInfo ( _
    <OutAttribute> ByRef guidID As Guid, _
    <OutAttribute> ByRef nMenuID As Integer, _
    <OutAttribute> ByRef pCmdTarget As IOleCommandTarget _
) As Integer
int GetContextMenuInfo(
    out Guid guidID,
    out int nMenuID,
    out IOleCommandTarget pCmdTarget
)
int GetContextMenuInfo(
    [OutAttribute] Guid% guidID, 
    [OutAttribute] int% nMenuID, 
    [OutAttribute] IOleCommandTarget^% pCmdTarget
)
abstract GetContextMenuInfo : 
        guidID:Guid byref * 
        nMenuID:int byref * 
        pCmdTarget:IOleCommandTarget byref -> int
function GetContextMenuInfo(
    guidID : Guid, 
    nMenuID : int, 
    pCmdTarget : IOleCommandTarget
) : int

Parâmetros

  • guidID
    Tipo: Guid%

    [out] O GUID do menu de contexto.

  • nMenuID
    Tipo: Int32%

    [out] A ID de menu do menu de contexto.

Valor de retorno

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

Comentários

COM assinatura

De textmgr2.idl:

HRESULT IVsSmartTagData::GetContextMenuInfo(
   [out] GUID *guidID,
   [out]long *nMenuID,
   [out]IOleCommandTarget **pCmdTarget
);

GetContextMenuInfoRetorna S_FALSE se OnInvocation deve ser chamado para o menu de contexto não interfaces do usuário.

Segurança do .NET Framework

Consulte também

Referência

IVsSmartTagData Interface

Namespace Microsoft.VisualStudio.TextManager.Interop