SuggestionBase.OnAcceptedAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
接受建議時由 SuggestionSessionBase 呼叫。
public abstract System.Threading.Tasks.Task OnAcceptedAsync (Microsoft.VisualStudio.Language.Suggestions.SuggestionSessionBase session, Microsoft.VisualStudio.Language.Proposals.ProposalBase originalProposal, Microsoft.VisualStudio.Language.Proposals.ProposalBase currentProposal, Microsoft.VisualStudio.Language.Suggestions.ReasonForAccept reason, System.Threading.CancellationToken cancel);
abstract member OnAcceptedAsync : Microsoft.VisualStudio.Language.Suggestions.SuggestionSessionBase * Microsoft.VisualStudio.Language.Proposals.ProposalBase * Microsoft.VisualStudio.Language.Proposals.ProposalBase * Microsoft.VisualStudio.Language.Suggestions.ReasonForAccept * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function OnAcceptedAsync (session As SuggestionSessionBase, originalProposal As ProposalBase, currentProposal As ProposalBase, reason As ReasonForAccept, cancel As CancellationToken) As Task
參數
- session
- SuggestionSessionBase
- originalProposal
- ProposalBase
- currentProposal
- ProposalBase
- reason
- ReasonForAccept
- cancel
- CancellationToken