Share via


CodeRefactoringContext.Document Property

Definition

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

Property Value

Applies to