IAsyncCompletionSessionOperations.CommitIfUniqueAsync Method
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.
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