![](../icons/logo.ico) | AsyncRelayCommandTParamExecuteAsync Method (TParam) |
Executes the AsyncRelayCommand on the current command target asynchronously.
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 Task ExecuteAsync(
TParam parameter
)
Public Function ExecuteAsync (
parameter As TParam
) As Task
Dim instance As AsyncRelayCommand
Dim parameter As TParam
Dim returnValue As Task
returnValue = instance.ExecuteAsync(parameter)
public:
virtual Task^ ExecuteAsync(
TParam parameter
) sealed
abstract ExecuteAsync :
parameter : 'TParam -> Task
override ExecuteAsync :
parameter : 'TParam -> Task
public final Task ExecuteAsync(
TParam parameter
)
public final function ExecuteAsync(
parameter : TParam
) : Task
function ExecuteAsync(parameter);
METHOD ExecuteAsync(
parameter AS TParam
) AS Task
Parameters
- parameter
- Type: TParam
Data used by the command. If the command does not require data to be passed,
this object can be set to null.
Return Value
Type:
Task[Missing <returns> documentation for "M:BionicCode.Utilities.Net.Core.Wpf.Generic.AsyncRelayCommand`1.ExecuteAsync(`0)"]
Implements
IAsyncRelayCommandTParamExecuteAsync(TParam)
RemarksIf the execute delegate is asynchronous (awaitable) then the execution is asynchronous otherwise the synchronous execute delegate is wrapped into an asynchronous call. This method is always awaitable and all handlers are always asynchronously executed.
See Also