CodeRefactoringContext.Document Property
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.
Document corresponding to the Span to refactor. For code refactorings that support non-source documents by providing a non-default value for DocumentKinds, this property will throw an InvalidOperationException. Such refactorings should use the TextDocument property instead.
public:
property Microsoft::CodeAnalysis::Document ^ Document { Microsoft::CodeAnalysis::Document ^ get(); };
public Microsoft.CodeAnalysis.Document Document { get; }
member this.Document : Microsoft.CodeAnalysis.Document
Public ReadOnly Property Document As Document