Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeConversionResult<T>

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes

A converted value and its report. Format-owned results derive from it and narrow OfficeConversionResult<T>.Report.

Inheritance

  • object
  • OfficeConversionResult<T>

Type Parameters

T
The target document, text, artifact or other converted value.

Constructors

public OfficeConversionResult<T>(T? value, OfficeConversionReport report) #

Creates a result containing a non-null converted value and its report.

Parameters

value T? required
report OfficeIMO.OfficeConversionReport required

Methods

public void Deconstruct(out T? value, out OfficeConversionReport report) #

Deconstructs the result into its converted value and report.

Parameters

value T? required
report OfficeIMO.OfficeConversionReport required
public virtual void ThrowIfLoss() #

Throws the report's OfficeConversionException when it describes possible fidelity loss.

Properties

public T? Value { get; } #

Gets the converted value.

public OfficeConversionReport Report { get; } #

Gets the conversion report.

public bool HasLoss { get; } #

Gets whether the report describes possible fidelity loss.