Share via


DataViewHierarchyAccessor.GetCommandStatus Method (Int32, OleCommand, OleCommandTextType)

Retrieves the status of an OLE command with a request for a particular type of command text.

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

Parameters

  • itemId
    Type: System.Int32

    The item ID for which the command status should be retrieved.

Return Value

Type: Microsoft.VisualStudio.Data.OleCommandStatus
Returns an OleCommandStatus object that describes the status of the OLE command.

Exceptions

Exception Condition
ArgumentNullException

The command parameter is null.

ArgumentException

The specified itemId is invalid.

.NET Framework Security

See Also

Reference

DataViewHierarchyAccessor Class

GetCommandStatus Overload

Microsoft.VisualStudio.Data Namespace