AsyncCommand Class 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A generic implementation of IAsyncCommand that invokes an async callback when executed.
public class AsyncCommand : Microsoft.VisualStudio.Extensibility.UI.NotifyPropertyChangedObject, Microsoft.VisualStudio.Extensibility.UI.IAsyncCommandtype AsyncCommand = class
    inherit NotifyPropertyChangedObject
    interface IAsyncCommandPublic Class AsyncCommand
Inherits NotifyPropertyChangedObject
Implements IAsyncCommand- Inheritance
- Implements
Constructors
| 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. | 
Properties
| CanExecute | Gets a value indicating whether the command can execute in its current state. | 
Methods
| ExecuteAsync(Object, IClientContext, CancellationToken) | Defines the method to be called when the command is invoked. | 
| RaiseNotifyPropertyChangedEvent(String) | Raises the PropertyChanged event.(Inherited from NotifyPropertyChangedObject) | 
| SetProperty<T>(T, T, String) | Sets the value of a property's backing field and raises PropertyChanged. If the value of  This method should be called from inside a property setter.(Inherited from NotifyPropertyChangedObject) | 
Events
| PropertyChanged | (Inherited from NotifyPropertyChangedObject) |