共用方式為


DataViewHierarchyAccessor.GetCommandStatus Method

Definition

Overloads

GetCommandStatus(Int32, OleCommand)

Retrieves the status of an OLE command.

GetCommandStatus(Int32, OleCommand, OleCommandTextType)

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

GetCommandStatus(Int32, OleCommand)

Retrieves the status of an OLE command.

public:
 Microsoft::VisualStudio::Data::OleCommandStatus ^ GetCommandStatus(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command);
public Microsoft.VisualStudio.Data.OleCommandStatus GetCommandStatus (int itemId, Microsoft.VisualStudio.Data.OleCommand command);
member this.GetCommandStatus : int * Microsoft.VisualStudio.Data.OleCommand -> Microsoft.VisualStudio.Data.OleCommandStatus
Public Function GetCommandStatus (itemId As Integer, command As OleCommand) As OleCommandStatus

Parameters

itemId
Int32

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

command
OleCommand

The command to query for status.

Returns

Returns an OleCommandStatus object that describes the status of the OLE command.

Exceptions

The command parameter is null.

The specified itemId is invalid.

Applies to

GetCommandStatus(Int32, OleCommand, OleCommandTextType)

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

public:
 Microsoft::VisualStudio::Data::OleCommandStatus ^ GetCommandStatus(int itemId, Microsoft::VisualStudio::Data::OleCommand ^ command, Microsoft::VisualStudio::Data::OleCommandTextType textType);
public Microsoft.VisualStudio.Data.OleCommandStatus GetCommandStatus (int itemId, Microsoft.VisualStudio.Data.OleCommand command, Microsoft.VisualStudio.Data.OleCommandTextType textType);
member this.GetCommandStatus : int * Microsoft.VisualStudio.Data.OleCommand * Microsoft.VisualStudio.Data.OleCommandTextType -> Microsoft.VisualStudio.Data.OleCommandStatus
Public Function GetCommandStatus (itemId As Integer, command As OleCommand, textType As OleCommandTextType) As OleCommandStatus

Parameters

itemId
Int32

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

command
OleCommand

The command to query for status.

textType
OleCommandTextType

The type of text that should be retrieved.

Returns

Returns an OleCommandStatus object that describes the status of the OLE command.

Exceptions

The command parameter is null.

The specified itemId is invalid.

Applies to