API Reference
Class
MarkdownRoundtripDiagnostic
Diagnostic emitted when a roundtrip writer cannot preserve source bytes losslessly.
Inheritance
- Object
- MarkdownRoundtripDiagnostic
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property MarkdownRoundtripResult.Diagnostics
Accepted by parameters
- Constructor MarkdownRoundtripResult.MarkdownRoundtripResult
Constructors
public MarkdownRoundtripDiagnostic(String id, String message, Nullable<MarkdownSourceSpan> sourceSpan = null, IReadOnlyList<MarkdownSourceSpan> relatedSourceSpans = null, Nullable<MarkdownOriginalSourceSliceFailureReason> originalSourceFailureReason = null) #Creates a roundtrip diagnostic.
Parameters
- id System.String
- message System.String
- sourceSpan System.Nullable{OfficeIMO.Markdown.MarkdownSourceSpan} = null
- relatedSourceSpans System.Collections.Generic.IReadOnlyList{OfficeIMO.Markdown.MarkdownSourceSpan} = null
- originalSourceFailureReason System.Nullable{OfficeIMO.Markdown.MarkdownOriginalSourceSliceFailureReason} = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Id { get; } #Stable diagnostic identifier.
public String Message { get; } #Human-readable diagnostic message.
public Nullable<MarkdownSourceSpan> SourceSpan { get; } #Optional source span that caused or best explains the fallback.
public Nullable<MarkdownOriginalSourceSliceFailureReason> OriginalSourceFailureReason { get; } #Machine-readable reason an original source mapping failed, when the diagnostic represents that fallback.