CompletionParticipation Enum

Definition

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

public enum class CompletionParticipation
public enum CompletionParticipation
type CompletionParticipation = 
Public Enum 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