Partager via


SuggestionManagerBase.TryDisplaySuggestionAsync Méthode

Définition

Essayez d’afficher un suggestion pour l’utilisateur.

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)

Paramètres

suggestion
SuggestionBase

Retours

si SuggestionSessionBase une suggestion peut être affichée ; null sinon.

Remarques

Notez que rien n’est affiché tant que n’est DisplayProposalAsync(ProposalBase, CancellationToken) pas appelé.

S’applique à