API Reference
Class
BibliographyDiagnostic
A stable source-located parser or writer diagnostic.
Inheritance
- Object
- BibliographyDiagnostic
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 BibliographyDocument.Diagnostics
- Property BibliographyReadResult.Diagnostics
Constructors
public BibliographyDiagnostic(String code, BibliographyDiagnosticSeverity severity, String message, Int32 offset = -1, Int32 line = -1, Int32 column = -1, String itemKey = null, String field = null) #Initializes a diagnostic.
Parameters
- code System.String
- severity OfficeIMO.Bibliography.BibliographyDiagnosticSeverity
- message System.String
- offset System.Int32 = -1
- line System.Int32 = -1
- column System.Int32 = -1
- itemKey System.String = null
- field System.String = null
Methods
public override String ToString() #Returns:
StringInherited Methods
Properties
public String Code { get; } #Stable machine-readable code.
public BibliographyDiagnosticSeverity Severity { get; } #Diagnostic severity.
public String Message { get; } #Human-readable description.
public Int32 Offset { get; } #Zero-based UTF-16 source offset, or -1.
public Int32 Line { get; } #One-based source line, or -1.
public Int32 Column { get; } #One-based source column, or -1.
public String ItemKey { get; } #Related citation key, when known.
public String Field { get; } #Related native field, when known.