Metodo DataViewHierarchyAccessor.GetCommandStatus (Int32, OleCommand, OleCommandTextType)
Recupera lo stato di un comando OLE con una richiesta di un tipo particolare di testo del comando.
Spazio dei nomi: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Sintassi
'Dichiarazione
Public Function GetCommandStatus ( _
itemId As Integer, _
command As OleCommand, _
textType As OleCommandTextType _
) As OleCommandStatus
public OleCommandStatus GetCommandStatus(
int itemId,
OleCommand command,
OleCommandTextType textType
)
public:
OleCommandStatus^ GetCommandStatus(
int itemId,
OleCommand^ command,
OleCommandTextType textType
)
member GetCommandStatus :
itemId:int *
command:OleCommand *
textType:OleCommandTextType -> OleCommandStatus
public function GetCommandStatus(
itemId : int,
command : OleCommand,
textType : OleCommandTextType
) : OleCommandStatus
Parametri
itemId
Tipo: Int32L'id elemento per il quale lo stato del comando deve essere recuperato.
command
Tipo: Microsoft.VisualStudio.Data.OleCommandIl comando eseguire una query sullo stato.
textType
Tipo: Microsoft.VisualStudio.Data.OleCommandTextTypeIl tipo di testo che deve essere recuperato.
Valore restituito
Tipo: Microsoft.VisualStudio.Data.OleCommandStatus
Restituisce un oggetto OleCommandStatus che descrive lo stato del comando OLE.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentNullException | Il parametro command è null. |
ArgumentException | Il ID voce specificato non è valido. |
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.