Freigeben über


AsyncCommand Constructors

Definition

Overloads

AsyncCommand(Func<Object,IClientContext,CancellationToken,Task>)

Initializes a new instance of the AsyncCommand class.

AsyncCommand(Func<Object,CancellationToken,Task>)

Initializes a new instance of the AsyncCommand class.

AsyncCommand(Func<Object,IClientContext,CancellationToken,Task>)

Initializes a new instance of the AsyncCommand class.

public AsyncCommand (Func<object?,Microsoft.VisualStudio.Extensibility.IClientContext,System.Threading.CancellationToken,System.Threading.Tasks.Task> executeCallback);
new Microsoft.VisualStudio.Extensibility.UI.AsyncCommand : Func<obj, Microsoft.VisualStudio.Extensibility.IClientContext, System.Threading.CancellationToken, System.Threading.Tasks.Task> -> Microsoft.VisualStudio.Extensibility.UI.AsyncCommand
Public Sub New (executeCallback As Func(Of Object, IClientContext, CancellationToken, Task))

Parameters

executeCallback
Func<Object,IClientContext,CancellationToken,Task>

The callback to be invoked when the command is executed.

Applies to

AsyncCommand(Func<Object,CancellationToken,Task>)

Initializes a new instance of the AsyncCommand class.

public AsyncCommand (Func<object?,System.Threading.CancellationToken,System.Threading.Tasks.Task> executeCallback);
new Microsoft.VisualStudio.Extensibility.UI.AsyncCommand : Func<obj, System.Threading.CancellationToken, System.Threading.Tasks.Task> -> Microsoft.VisualStudio.Extensibility.UI.AsyncCommand
Public Sub New (executeCallback As Func(Of Object, CancellationToken, Task))

Parameters

executeCallback
Func<Object,CancellationToken,Task>

The callback to be invoked when the command is executed.

Remarks

This constructor is present for compatibility reasons, we recommend using the one with IClientContext in the callback signature.

Applies to