Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeValidationReport

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
sealed

Read-only validation findings and the native evidence that produced them.

Inheritance

  • object
  • OfficeValidationReport

Constructors

public OfficeValidationReport(IEnumerable<OfficeDiagnostic> diagnostics, IEnumerable<object>? nativeReports = null) #

Creates a report with detached collections of diagnostics and native reports.

Parameters

diagnostics System.Collections.Generic.IEnumerable<OfficeIMO.OfficeDiagnostic> required
nativeReports System.Collections.Generic.IEnumerable<object>? = null optional

Methods

public void ThrowIfFailed() #

Throws InvalidOperationException with the failed check diagnostics when IsValid is false.

public string ToMarkdown() #

Formats the validation result and its diagnostics for a Markdown report.

Returns

string

Properties

public bool IsValid { get; } #

True when no performed check reported an error. Not-applicable checks are explicitly identified in Diagnostics.

public IReadOnlyList<OfficeDiagnostic> Diagnostics { get; } #

Findings, including explicit Validation.NotApplicable observations for checks unavailable on this input.

public IReadOnlyList<object> NativeReports { get; } #

Native validation evidence, including package inventories, feature reports and PDF proof requirements.