Share via


CodeRefactoringContext Constructors

Definition

Overloads

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

Creates a code refactoring context to be passed into ComputeRefactoringsAsync(CodeRefactoringContext) method.

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

Creates a code refactoring context to be passed into ComputeRefactoringsAsync(CodeRefactoringContext) method.

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

Creates a code refactoring context to be passed into ComputeRefactoringsAsync(CodeRefactoringContext) method.

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)

Parameters

document
Document
span
TextSpan
registerRefactoring
Action<CodeAction>
cancellationToken
CancellationToken
Attributes

Applies to

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

Source:
CodeRefactoringContext.cs
Source:
CodeRefactoringContext.cs
Source:
CodeRefactoringContext.cs
Source:
CodeRefactoringContext.cs
Source:
CodeRefactoringContext.cs

Creates a code refactoring context to be passed into ComputeRefactoringsAsync(CodeRefactoringContext) method.

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)

Parameters

document
TextDocument
span
TextSpan
registerRefactoring
Action<CodeAction>
cancellationToken
CancellationToken

Applies to