共用方式為


CodeRefactoringContext 建構函式

定義

多載

CodeRefactoringContext(Document, TextSpan, Action<CodeAction>, CancellationToken)

建立要傳遞至 ComputeRefactoringsAsync(CodeRefactoringContext) 方法的程式碼重構內容。

CodeRefactoringContext(TextDocument, TextSpan, Action<CodeAction>, CancellationToken)

建立要傳遞至 ComputeRefactoringsAsync(CodeRefactoringContext) 方法的程式碼重構內容。

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

建立要傳遞至 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

建立要傳遞至 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

適用於