LegacyXlsImportDiagnostic
OfficeIMO.Excel.LegacyXls.Diagnostics
Describes an import issue, unsupported feature, or compatibility note discovered in a legacy XLS file.
Inheritance
- object
- LegacyXlsImportDiagnostic
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
Constructors
public LegacyXlsImportDiagnostic(LegacyXlsDiagnosticSeverity severity, string code, string message, string? sheetName = null, int? recordOffset = null, ushort? recordType = null, string? detailCode = null, string? formulaContext = null, byte? formulaToken = null, int? formulaTokenOffset = null, string? formulaTokenName = null) #Creates a diagnostic for a legacy XLS import issue or feature note.
Parameters
- severity OfficeIMO.Excel.LegacyXls.Diagnostics.LegacyXlsDiagnosticSeverity
- Diagnostic severity.
- code string
- Stable diagnostic code.
- message string
- Human-readable diagnostic message.
- sheetName string? = null
- Optional worksheet name associated with the diagnostic.
- recordOffset int? = null
- Optional byte offset of the related BIFF record.
- recordType ushort? = null
- Optional BIFF record type identifier.
- detailCode string? = null
- Optional stable detail key for grouped import reports.
- formulaContext string? = null
- Optional formula source context associated with formula-token diagnostics.
- formulaToken byte? = null
- Optional BIFF formula token byte associated with formula-token diagnostics.
- formulaTokenOffset int? = null
- Optional zero-based parsed-expression token offset associated with formula-token diagnostics.
- formulaTokenName string? = null
- Optional BIFF formula token name associated with formula-token diagnostics.
Methods
public override string ToString() #Returns a compact diagnostic string for logs and test output.
Returns
stringInherited Methods
Properties
public LegacyXlsDiagnosticSeverity Severity { get; } #Gets the diagnostic severity.
public string Message { get; } #Gets the human-readable diagnostic message.
public string? SheetName { get; } #Gets the worksheet name associated with the diagnostic, when known.
public int? RecordOffset { get; } #Gets the byte offset of the related BIFF record, when known.
public ushort? RecordType { get; } #Gets the BIFF record type identifier, when known.
public string? DetailCode { get; } #Gets a stable detail key for report grouping, when available.
public string? FormulaContext { get; } #Gets the formula source context associated with a formula-token diagnostic, when available.
public byte? FormulaToken { get; } #Gets the BIFF formula token byte associated with a formula-token diagnostic, when available.
public string? FormulaTokenName { get; } #Gets the BIFF formula token name associated with a formula-token diagnostic, when available.
public int? FormulaTokenOffset { get; } #Gets the zero-based offset of LegacyXlsImportDiagnostic.FormulaToken within the parsed-expression token stream, when available.