RoutedCommand.ICommand.CanExecute(Object) 方法

定義

如需這個成員的說明,請參閱 CanExecute(Object)For a description of this members, see CanExecute(Object).

 virtual bool System.Windows.Input.ICommand.CanExecute(System::Object ^ parameter) = System::Windows::Input::ICommand::CanExecute;
[System.Security.SecurityCritical]
bool ICommand.CanExecute (object parameter);
Function CanExecute (parameter As Object) As Boolean Implements ICommand.CanExecute

參數

parameter
Object

命令所用的資料。Data used by the command. 如果命令不需要傳遞資料,則這個物件可設為 nullIf the command does not require data to be passed, this object can be set to null.

傳回

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

實作

屬性

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 RoutedCommand 執行個體轉換成 ICommand 介面時,才能使用這個成員。It can be used only when the RoutedCommand instance is cast to an ICommand interface.

適用於

另請參閱