Partilhar via


SuggestionBase.OnChangeProposalAsync Método

Definição

O usuário solicitou uma proposta alternativa. Atualize a proposta por meio de 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

Parâmetros

originalProposal
ProposalBase
currentProposal
ProposalBase
forward
Boolean

Retornos

Comentários

Espera-se que o receptor chame DisplayProposalAsync(ProposalBase, CancellationToken) com uma nova sugestão se houver uma.

Aplica-se a