DataSourceView.CanExecute(String) 方法

定義

判斷是否可以執行指定的命令。Determines whether the specified command can be executed.

public:
 virtual bool CanExecute(System::String ^ commandName);
public virtual bool CanExecute (string commandName);
abstract member CanExecute : string -> bool
override this.CanExecute : string -> bool
Public Overridable Function CanExecute (commandName As String) As Boolean

參數

commandName
String

命令的名稱。The name of the command.

傳回

Boolean

如果命令可以執行則為 true,否則為 falsetrue if the command can be executed; otherwise, false.

適用於