次の方法で共有


Command<T> コンストラクター

定義

オーバーロード

Command<T>(Action<T>)

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

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

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

Command<T>(Action<T>)

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

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

パラメーター

execute
System.Action<T>

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

適用対象

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

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

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

パラメーター

execute
System.Action<T>

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

canExecute
System.Func<T,System.Boolean>

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

適用対象