다음을 통해 공유


DataViewCommandHandler.GetCommandStatus Method

Definition

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

public:
 virtual Microsoft::VisualStudio::Data::OleCommandStatus ^ GetCommandStatus(cli::array <int> ^ itemIds, Microsoft::VisualStudio::Data::OleCommand ^ command, Microsoft::VisualStudio::Data::OleCommandTextType textType, Microsoft::VisualStudio::Data::OleCommandStatus ^ status);
public virtual Microsoft.VisualStudio.Data.OleCommandStatus GetCommandStatus (int[] itemIds, Microsoft.VisualStudio.Data.OleCommand command, Microsoft.VisualStudio.Data.OleCommandTextType textType, Microsoft.VisualStudio.Data.OleCommandStatus status);
abstract member GetCommandStatus : int[] * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandTextType * Microsoft.VisualStudio.Data.OleCommandStatus -> Microsoft.VisualStudio.Data.OleCommandStatus
override this.GetCommandStatus : int[] * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandTextType * Microsoft.VisualStudio.Data.OleCommandStatus -> Microsoft.VisualStudio.Data.OleCommandStatus
Public Overridable Function GetCommandStatus (itemIds As Integer(), command As OleCommand, textType As OleCommandTextType, status As OleCommandStatus) As OleCommandStatus

Parameters

itemIds
Int32[]

Array of identifiers for the items in the data view hierarchy on which this command should be invoked.

command
OleCommand

The OleCommand object representing the command to invoke.

textType
OleCommandTextType

The OleCommandTextType object instance for the specified command.

status
OleCommandStatus

The OleCommandStatus object instance for the specified command.

Returns

Returns an OleCommandStatus object instance representing the status returned by the specified commands.

Exceptions

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

The itemId parameter is invalid.

Applies to