CompletionParticipation Enum

Definition

Describes the level of IAsyncCompletionSource's participation in the IAsyncCompletionSession.

C++
public enum class CompletionParticipation
Inheritance
CompletionParticipation

Fields

Name Value Description
DoesNotProvideItems 0

This IAsyncCompletionSource will not provide completion items. ApplicableToSpan returned by this IAsyncCompletionSource may be used in the prospective IAsyncCompletionSession if another IAsyncCompletionSource announced participation in completion.

ProvidesItems 1

GetCompletionContextAsync(IAsyncCompletionSession, CompletionTrigger, SnapshotPoint, SnapshotSpan, CancellationToken) will be invoked, unless another IAsyncCompletionSources returned ExclusivelyProvidesItems.

ExclusivelyProvidesItems 2

GetCompletionContextAsync(IAsyncCompletionSession, CompletionTrigger, SnapshotPoint, SnapshotSpan, CancellationToken) will be invoked only on this IAsyncCompletionSource and other IAsyncCompletionSources which returned ExclusivelyProvidesItems.

Applies to

Produkt Versiounen
Visual Studio SDK 2019, 2022