SuggestionBase.OnChangeProposalAsync 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.
The user has requested an alternate proposal. Update the proposal via DisplayProposalAsync(ProposalBase, CancellationToken).
public abstract System.Threading.Tasks.Task OnChangeProposalAsync (Microsoft.VisualStudio.Language.Suggestions.SuggestionSessionBase session, Microsoft.VisualStudio.Language.Proposals.ProposalBase originalProposal, Microsoft.VisualStudio.Language.Proposals.ProposalBase currentProposal, bool forward, System.Threading.CancellationToken cancel);
abstract member OnChangeProposalAsync : Microsoft.VisualStudio.Language.Suggestions.SuggestionSessionBase * Microsoft.VisualStudio.Language.Proposals.ProposalBase * Microsoft.VisualStudio.Language.Proposals.ProposalBase * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function OnChangeProposalAsync (session As SuggestionSessionBase, originalProposal As ProposalBase, currentProposal As ProposalBase, forward As Boolean, cancel As CancellationToken) As Task
Parameters
- session
- SuggestionSessionBase
- originalProposal
- ProposalBase
- currentProposal
- ProposalBase
- forward
- Boolean
- cancel
- CancellationToken
Returns
Remarks
The callee is expected to call DisplayProposalAsync(ProposalBase, CancellationToken) with a new suggestion if one exists.