Command コンストラクター

定義

オーバーロード

Command(Action)

コマンド クラスの新しいインスタンスを初期化します。

Command(Action<Object>)

コマンド クラスの新しいインスタンスを初期化します。

Command(Action, Func<Boolean>)

コマンド クラスの新しいインスタンスを初期化します。

Command(Action<Object>, Func<Object,Boolean>)

コマンド クラスの新しいインスタンスを初期化します。

Command(Action)

コマンド クラスの新しいインスタンスを初期化します。

public Command (Action execute);
new Xamarin.Forms.Command : Action -> Xamarin.Forms.Command

パラメーター

execute
System.Action

コマンドの実行時に実行するアクション。

適用対象

Command(Action<Object>)

コマンド クラスの新しいインスタンスを初期化します。

public Command (Action<object> execute);
new Xamarin.Forms.Command : Action<obj> -> Xamarin.Forms.Command

パラメーター

execute
System.Action<System.Object>

コマンドの実行時に実行するアクション <オブジェクト>。

注釈

アクションは パラメーターを使用して実行されます。

適用対象

Command(Action, Func<Boolean>)

コマンド クラスの新しいインスタンスを初期化します。

public Command (Action execute, Func<bool> canExecute);
new Xamarin.Forms.Command : Action * Func<bool> -> Xamarin.Forms.Command

パラメーター

execute
System.Action

コマンドの実行時に実行するアクション。

canExecute
System.Func<System.Boolean>

コマンドが実行できるかどうかを示す System.Func`1

注釈

canExecute によって返される値が変更されるたびに、 をトリガーSystem.Windows.Input.ICommand.CanExecuteChangedするには、 のChangeCanExecute()呼び出しが必要です。

適用対象

Command(Action<Object>, Func<Object,Boolean>)

コマンド クラスの新しいインスタンスを初期化します。

public Command (Action<object> execute, Func<object,bool> canExecute);
new Xamarin.Forms.Command : Action<obj> * Func<obj, bool> -> Xamarin.Forms.Command

パラメーター

execute
System.Action<System.Object>

コマンドの実行時に実行するアクション <オブジェクト>。

canExecute
System.Func<System.Object,System.Boolean>

コマンドが実行できるかどうかを示す System.Func`2

注釈

canExecute によって返される値が変更されるたびに、 をトリガーSystem.Windows.Input.ICommand.CanExecuteChangedするには、 のChangeCanExecute()呼び出しが必要です。

適用対象