CodeRefactoringContext 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CodeRefactoringContext(Document, TextSpan, Action<CodeAction>, CancellationToken)
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
创建要传递到 ComputeRefactoringsAsync(CodeRefactoringContext) 方法中的代码重构上下文。
public:
CodeRefactoringContext(Microsoft::CodeAnalysis::Document ^ document, Microsoft::CodeAnalysis::Text::TextSpan span, Action<Microsoft::CodeAnalysis::CodeActions::CodeAction ^> ^ registerRefactoring, System::Threading::CancellationToken cancellationToken);
public CodeRefactoringContext (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> registerRefactoring, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public CodeRefactoringContext (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> registerRefactoring, System.Threading.CancellationToken cancellationToken);
new Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext : Microsoft.CodeAnalysis.Document * Microsoft.CodeAnalysis.Text.TextSpan * Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
new Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext : Microsoft.CodeAnalysis.Document * Microsoft.CodeAnalysis.Text.TextSpan * Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext
Public Sub New (document As Document, span As TextSpan, registerRefactoring As Action(Of CodeAction), cancellationToken As CancellationToken)
参数
- document
- Document
- span
- TextSpan
- registerRefactoring
- Action<CodeAction>
- cancellationToken
- CancellationToken
- 属性
适用于
CodeRefactoringContext(TextDocument, TextSpan, Action<CodeAction>, CancellationToken)
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
创建要传递到 ComputeRefactoringsAsync(CodeRefactoringContext) 方法中的代码重构上下文。
public CodeRefactoringContext (Microsoft.CodeAnalysis.TextDocument document, Microsoft.CodeAnalysis.Text.TextSpan span, Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> registerRefactoring, System.Threading.CancellationToken cancellationToken);
new Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext : Microsoft.CodeAnalysis.TextDocument * Microsoft.CodeAnalysis.Text.TextSpan * Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext
Public Sub New (document As TextDocument, span As TextSpan, registerRefactoring As Action(Of CodeAction), cancellationToken As CancellationToken)
参数
- document
- TextDocument
- span
- TextSpan
- registerRefactoring
- Action<CodeAction>
- cancellationToken
- CancellationToken