共用方式為


IAsyncCommand Interface

Definition

An object implementing IAsyncCommand in the DataContext of a control is converted to a ICommand in the Visual Studio process and can be databound in xaml.

public interface IAsyncCommand
type IAsyncCommand = interface
Public Interface IAsyncCommand
Derived

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.

Applies to