![](../icons/logo.ico) | AsyncRelayCommandTParam Constructor (FuncTParam, Task, PredicateTParam) |
Creates a new asynchronous command.
Namespace:
BionicCode.Utilities.Net.Core.Wpf.Generic
Assembly:
BionicCode.Utilities.Net.Core.Wpf (in BionicCode.Utilities.Net.Core.Wpf.dll) Version: 1.0.2
Syntaxpublic AsyncRelayCommand(
Func<TParam, Task> executeAsync,
Predicate<TParam> canExecute
)
public:
AsyncRelayCommand(
Func<TParam, Task^>^ executeAsync,
Predicate<TParam>^ canExecute
)
new :
executeAsync : Func<'TParam, Task> *
canExecute : Predicate<'TParam> -> AsyncRelayCommand
public AsyncRelayCommand(
Func<TParam, Task> executeAsync,
Predicate<TParam> canExecute
)
BionicCode.Utilities.Net.Core.Wpf.Generic.AsyncRelayCommand = function(executeAsync, canExecute);
Parameters
- executeAsync
- Type: SystemFuncTParam, Task
The awaitable execution handler. - canExecute
- Type: SystemPredicateTParam
The can execute handler.
See Also