Udostępnij za pośrednictwem


IAsyncCompletionSessionOperations.CommitIfUniqueAsync Method

Definition

Starts asynchronous computation, which results in either committing of the single CompletionItem or opening the completion UI. Calling OpenOrUpdate(CompletionTrigger, SnapshotPoint, CancellationToken) cancels the operation and dismisses the session. Must be called on the UI thread to correctly set state of the session.

public:
 System::Threading::Tasks::Task<bool> ^ CommitIfUniqueAsync(System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<bool> CommitIfUniqueAsync (System.Threading.CancellationToken token);
abstract member CommitIfUniqueAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function CommitIfUniqueAsync (token As CancellationToken) As Task(Of Boolean)

Parameters

token
CancellationToken

Token used to cancel this operation

Returns

true if the unique item was committed

Applies to