SuggestionManagerBase.TryDisplaySuggestionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- cancel
- CancellationToken
Returns
A SuggestionSessionBase if a suggestion can be displayed; null otherwise.
Remarks
Note that nothing displayed until DisplayProposalAsync(ProposalBase, CancellationToken) is called.