Share via


CodeFixContext.Document Property

Definition

Document corresponding to the Span to fix. For code fixes that support non-source documents by providing a non-default value for DocumentKinds, this property will throw an InvalidOperationException. Such fixers 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