Partager via


DataViewHierarchyAccessor.GetCommandStatus Method (Int32, OleCommand)

Retrieves the status of an OLE command.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public Function GetCommandStatus ( _
    itemId As Integer, _
    command As OleCommand _
) As OleCommandStatus
public OleCommandStatus GetCommandStatus(
    int itemId,
    OleCommand command
)
public:
OleCommandStatus^ GetCommandStatus(
    int itemId, 
    OleCommand^ command
)
member GetCommandStatus : 
        itemId:int * 
        command:OleCommand -> OleCommandStatus
public function GetCommandStatus(
    itemId : int, 
    command : OleCommand
) : 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