Metodo IVsDataExplorerNode.GetCommand
Ottiene un comando di menu che corrisponde al valore specificato CommandID.
Spazio dei nomi: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Sintassi
'Dichiarazione
Function GetCommand ( _
commandId As CommandID _
) As MenuCommand
MenuCommand GetCommand(
CommandID commandId
)
MenuCommand^ GetCommand(
CommandID^ commandId
)
abstract GetCommand :
commandId:CommandID -> MenuCommand
function GetCommand(
commandId : CommandID
) : MenuCommand
Parametri
commandId
Tipo: CommandIDUn oggetto CommandID contenenti un ID di comando numerico e un menu di GUID raggruppano l'identificatore.
Valore restituito
Tipo: MenuCommand
Un oggetto MenuCommand del comando di menu.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.