SuggestionManagerBase.TryDisplaySuggestionAsync Method

Definition

Try to display a suggestion to the user.

public abstract System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Suggestions.SuggestionSessionBase?> TryDisplaySuggestionAsync (Microsoft.VisualStudio.Language.Suggestions.SuggestionBase suggestion, System.Threading.CancellationToken cancel);
abstract member TryDisplaySuggestionAsync : Microsoft.VisualStudio.Language.Suggestions.SuggestionBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Suggestions.SuggestionSessionBase>
Public MustOverride Function TryDisplaySuggestionAsync (suggestion As SuggestionBase, cancel As CancellationToken) As Task(Of SuggestionSessionBase)

Parameters

suggestion
SuggestionBase

Returns

A SuggestionSessionBase if a suggestion can be displayed; null otherwise.

Remarks

Note that nothing displayed until DisplayProposalAsync(ProposalBase, CancellationToken) is called.

Applies to