Freigeben über


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: Int32

    Die Element-ID, für die der Befehlsstatus 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

Siehe auch

Referenz

DataViewHierarchyAccessor Klasse

GetCommandStatus-Überladung

Microsoft.VisualStudio.Data-Namespace