RoutedCommand.ICommand.CanExecute(Object) 方法

定義

如需這個成員的說明,請參閱 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);
bool ICommand.CanExecute (object parameter);
[<System.Security.SecurityCritical>]
abstract member System.Windows.Input.ICommand.CanExecute : obj -> bool
override this.System.Windows.Input.ICommand.CanExecute : obj -> bool
abstract member System.Windows.Input.ICommand.CanExecute : obj -> bool
override this.System.Windows.Input.ICommand.CanExecute : obj -> bool
Function CanExecute (parameter As Object) As Boolean Implements ICommand.CanExecute

參數

parameter
Object

命令所用的資料。 如果命令不需要傳遞資料,則這個物件可設為 null

傳回

如果這個命令可執行,則為 true;否則為 false

實作

屬性

備註

這個成員是明確介面成員實作, 只有在 RoutedCommand 執行個體轉換成 ICommand 介面時,才能使用這個成員。

適用於

另請參閱