DataViewHierarchyAccessor.GetCommandStatus-Methode (Int32, OleCommand, OleCommandTextType)
Ruft den Status eines OLE-Befehls mit einem Anforderung für einen bestimmten Typ Befehlstext ab.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
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
Parameter
itemId
Typ: Int32Die Element-ID, für die der Befehlsstatus abgerufen werden soll.
command
Typ: Microsoft.VisualStudio.Data.OleCommandDer Befehl, für Status abzufragen.
textType
Typ: Microsoft.VisualStudio.Data.OleCommandTextTypeDer Typ des Texts, der abgerufen werden soll.
Rückgabewert
Typ: Microsoft.VisualStudio.Data.OleCommandStatus
Gibt ein OleCommandStatus-Objekt zurück, das den Status des OLE-Befehls beschreibt.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | Der command-Parameter ist NULL. |
ArgumentException | Das angegebene itemId ist ungültig. |
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.