Click or drag to resize

CodeRefactoringContext Class



Context for code refactorings provided by an CodeRefactoringProvider.
Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysis.CodeRefactoringsCodeRefactoringContext

Namespace:  Microsoft.CodeAnalysis.CodeRefactorings
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class CodeRefactoringContext : ValueType

The CodeRefactoringContext type exposes the following members.

Constructors
  NameDescription
Public methodCodeRefactoringContext
Initializes a new instance of the CodeRefactoringContext class
Top
Properties
  NameDescription
Public propertyCancellationToken
CancellationToken.
Public propertyDocument
Document corresponding to the Span to refactor.
Public propertySpan
Text span within the Document to refactor.
Top
Methods
  NameDescription
Public methodRegisterRefactoring
Add supplied action to the list of refactorings that will be offered to the user.
Top
See Also