共用方式為


ICommandHandler<T>.GetCommandState(T) Method

Definition

Called to determine the state of the command.

public:
 Microsoft::VisualStudio::Commanding::CommandState GetCommandState(T args);
public Microsoft.VisualStudio.Commanding.CommandState GetCommandState (T args);
abstract member GetCommandState : 'T -> Microsoft.VisualStudio.Commanding.CommandState
Public Function GetCommandState (args As T) As CommandState

Parameters

args
T

The CommandArgs arguments for the command.

Returns

A CommandState instance that contains information on the availability of the command.

Applies to