Compartir a través de


DataViewCommandHandler.GetCommandStatus Method

Retrieves the status of the commands executing on the specified items.

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

Syntax

'Declaración
Public Overridable Function GetCommandStatus ( _
    itemIds As Integer(), _
    command As OleCommand, _
    textType As OleCommandTextType, _
    status As OleCommandStatus _
) As OleCommandStatus
public virtual OleCommandStatus GetCommandStatus(
    int[] itemIds,
    OleCommand command,
    OleCommandTextType textType,
    OleCommandStatus status
)
public:
virtual OleCommandStatus^ GetCommandStatus(
    array<int>^ itemIds, 
    OleCommand^ command, 
    OleCommandTextType textType, 
    OleCommandStatus^ status
)
abstract GetCommandStatus : 
        itemIds:int[] * 
        command:OleCommand * 
        textType:OleCommandTextType * 
        status:OleCommandStatus -> OleCommandStatus 
override GetCommandStatus : 
        itemIds:int[] * 
        command:OleCommand * 
        textType:OleCommandTextType * 
        status:OleCommandStatus -> OleCommandStatus 
public function GetCommandStatus(
    itemIds : int[], 
    command : OleCommand, 
    textType : OleCommandTextType, 
    status : OleCommandStatus
) : OleCommandStatus

Parameters

  • itemIds
    Type: array<System.Int32[]
    Array of identifiers for the items in the data view hierarchy on which this command should be invoked.

Return Value

Type: Microsoft.VisualStudio.Data.OleCommandStatus
Returns an OleCommandStatus object instance representing the status returned by the specified commands.

Exceptions

Exception Condition
ArgumentNullException

The status, itemId and/or command parameter is null.

ArgumentException

The itemId parameter is invalid.

Remarks

The caller of this method allocates the OleCommandStatus instance that holds the status of commands. The implementation of this method should set properties on this status object and then return the same instance.

.NET Framework Security

See Also

Reference

DataViewCommandHandler Class

Microsoft.VisualStudio.Data Namespace