Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdfConversionResult<TDocument>

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
be6c300e4ab1 with working tree changes
Base
OfficeConversionResult<TDocument>
Modifiers
sealed

Converted document together with the feature mapping evidence for that conversion.

Inheritance

  • OfficeConversionResult<TDocument>
  • OdfConversionResult<TDocument>

Usage

Explore 3 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.

Type Parameters

TDocument

Constructors

public OdfConversionResult<TDocument>(TDocument value, OdfConversionReport report) #

Creates a conversion result.

Parameters

value TDocument required
report OfficeIMO.OpenDocument.OdfConversionReport required

Methods

public OdfConversionResult<TDocument> ApplyPolicy(OdfConversionLossPolicy policy) #

Applies a loss policy and returns this result for fluent adapter composition. A rejected disposable conversion value is disposed before the policy exception is rethrown.

Parameters

policy OfficeIMO.OpenDocument.OdfConversionLossPolicy required
public TDocument GetValue(OdfConversionLossPolicy policy) #

Returns the converted document after applying an explicit loss policy.

Parameters

policy OfficeIMO.OpenDocument.OdfConversionLossPolicy required

Returns

TDocument
public override void ThrowIfLoss() #

Throws when the conversion was lossy and disposes a rejected disposable document first.

Properties

public OdfConversionReport Report { get; } #

Gets the typed conversion report.