ICommand.Execute(Object) 方法

定義

定義叫用命令時要呼叫的方法。Defines the method to be called when the command is invoked.

public:
 void Execute(System::Object ^ parameter);
public void Execute (object parameter);
abstract member Execute : obj -> unit
Public Sub Execute (parameter As Object)

參數

parameter
Object

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

適用於

另請參閱