Freigeben über


ICodeCleanUpFixer.FixAsync Method

Definition

Fix issues in the files identified by the scope. Cancellation should be checked against the context.OperationContext.UserCancellationToken

public:
 System::Threading::Tasks::Task<bool> ^ FixAsync(Microsoft::VisualStudio::Language::CodeCleanUp::ICodeCleanUpScope ^ scope, Microsoft::VisualStudio::Language::CodeCleanUp::ICodeCleanUpExecutionContext ^ context);
public System.Threading.Tasks.Task<bool> FixAsync (Microsoft.VisualStudio.Language.CodeCleanUp.ICodeCleanUpScope scope, Microsoft.VisualStudio.Language.CodeCleanUp.ICodeCleanUpExecutionContext context);
abstract member FixAsync : Microsoft.VisualStudio.Language.CodeCleanUp.ICodeCleanUpScope * Microsoft.VisualStudio.Language.CodeCleanUp.ICodeCleanUpExecutionContext -> System.Threading.Tasks.Task<bool>
Public Function FixAsync (scope As ICodeCleanUpScope, context As ICodeCleanUpExecutionContext) As Task(Of Boolean)

Parameters

scope
ICodeCleanUpScope

Context to fix issues within

context
ICodeCleanUpExecutionContext

Execution context which contains what the fixer should be applied to. And an OperationContext to provide progress and cancellation

Returns

bool if the fixer succeeded false otherwise

Applies to