共用方式為


SuggestionSessionBase.DisplayProposalAsync 方法

定義

向用戶顯示 content 。 可為 null (,以隱藏建議) 。

public abstract System.Threading.Tasks.Task DisplayProposalAsync (Microsoft.VisualStudio.Language.Proposals.ProposalBase? content, System.Threading.CancellationToken cancel);
abstract member DisplayProposalAsync : Microsoft.VisualStudio.Language.Proposals.ProposalBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function DisplayProposalAsync (content As ProposalBase, cancel As CancellationToken) As Task

參數

content
ProposalBase

傳回

備註

OnProposalUpdatedAsync(SuggestionSessionBase, ProposalBase, ProposalBase, ReasonForUpdate, VirtualSnapshotPoint, CompletionState, CancellationToken) 如果提案無法與檢視和文字緩衝區的目前狀態進行偵察,將會 DivergedDueToInvalidProposal 呼叫 。

適用於