Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

LegacyXlsImportDiagnostic

OfficeIMO.Excel.LegacyXls.Diagnostics

Namespace
OfficeIMO.Excel.LegacyXls.Diagnostics
Assembly
OfficeIMO.Excel
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

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 required
Diagnostic severity.
code string required
Stable diagnostic code.
message string required
Human-readable diagnostic message.
sheetName string? = null optional
Optional worksheet name associated with the diagnostic.
recordOffset int? = null optional
Optional byte offset of the related BIFF record.
recordType ushort? = null optional
Optional BIFF record type identifier.
detailCode string? = null optional
Optional stable detail key for grouped import reports.
formulaContext string? = null optional
Optional formula source context associated with formula-token diagnostics.
formulaToken byte? = null optional
Optional BIFF formula token byte associated with formula-token diagnostics.
formulaTokenOffset int? = null optional
Optional zero-based parsed-expression token offset associated with formula-token diagnostics.
formulaTokenName string? = null optional
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

string

Properties

public LegacyXlsDiagnosticSeverity Severity { get; } #

Gets the diagnostic severity.

public string Code { get; } #

Gets the stable diagnostic code.

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.