Udostępnij za pośrednictwem


ApplyChangesOperation Class

Definition

A CodeActionOperation for applying solution changes to a workspace. GetOperationsAsync(CancellationToken) may return at most one ApplyChangesOperation. Hosts may provide custom handling for ApplyChangesOperations, but if a CodeAction requires custom host behavior not supported by a single ApplyChangesOperation, then instead:

    public ref class ApplyChangesOperation sealed : Microsoft::CodeAnalysis::CodeActions::CodeActionOperation
    public sealed class ApplyChangesOperation : Microsoft.CodeAnalysis.CodeActions.CodeActionOperation
    type ApplyChangesOperation = class
        inherit CodeActionOperation
    Public NotInheritable Class ApplyChangesOperation
    Inherits CodeActionOperation
    Inheritance
    ApplyChangesOperation

    Constructors

    ApplyChangesOperation(Solution)

    A CodeActionOperation for applying solution changes to a workspace. GetOperationsAsync(CancellationToken) may return at most one ApplyChangesOperation. Hosts may provide custom handling for ApplyChangesOperations, but if a CodeAction requires custom host behavior not supported by a single ApplyChangesOperation, then instead:

      Properties

      ChangedSolution
      Title

      A short title describing of the effect of the operation.

      (Inherited from CodeActionOperation)

      Methods

      Apply(Workspace, CancellationToken)

      Applies to