ICodeCleanUpFixer.FixAsync 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.
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