Compartilhar via


SuggestionManagerBase.TryDisplaySuggestionAsync Método

Definição

Tente exibir um suggestion para o usuário.

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)

Parâmetros

suggestion
SuggestionBase

Retornos

Um SuggestionSessionBase se uma sugestão puder ser exibida; caso contrário, nulo.

Comentários

Observe que nada exibido até DisplayProposalAsync(ProposalBase, CancellationToken) ser chamado.

Aplica-se a