SuggestionManagerBase.CommitProposalAsync 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.
Commit all edits associated with the proposal as if the proposal had been displayed by the suggestion service.
public virtual System.Threading.Tasks.Task<bool> CommitProposalAsync (Microsoft.VisualStudio.Language.Proposals.ProposalBase proposal, System.Threading.CancellationToken cancel);
abstract member CommitProposalAsync : Microsoft.VisualStudio.Language.Proposals.ProposalBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CommitProposalAsync : Microsoft.VisualStudio.Language.Proposals.ProposalBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CommitProposalAsync (proposal As ProposalBase, cancel As CancellationToken) As Task(Of Boolean)
Parameters
- proposal
- ProposalBase
- cancel
- CancellationToken
Returns
true if the edits were applied. Otherwise, no changes were made.