SuggestionManagerBase.TryDisplaySuggestionAsync Metodo

Definizione

Provare a visualizzare un oggetto suggestion all'utente.

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)

Parametri

suggestion
SuggestionBase

Restituisce

Oggetto SuggestionSessionBase se è possibile visualizzare un suggerimento; in caso contrario, Null.

Commenti

Si noti che non viene visualizzato alcun valore finché non DisplayProposalAsync(ProposalBase, CancellationToken) viene chiamato.

Si applica a