# ReaderDocumentReadOutcome

Describes the success or failure of one path in a resilient multi-document read.

Class 

`OfficeIMO.Reader`

**Namespace**

`OfficeIMO.Reader`

**Assembly**

`OfficeIMO.Reader.Core`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[ReaderDocumentReadOutcome.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/ReaderDocumentReadOutcome.cs#L21)

**Modifiers**

sealed

Describes the success or failure of one path in a resilient multi-document read.

## Inheritance

- object
- ReaderDocumentReadOutcome

## 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.

### Returned or exposed by 1

- Method [OfficeDocumentReader.ReadDocumentsDetailedAsync](/api/reader/officeimo-reader-officedocumentreader/#method-readdocumentsdetailedasync-collections-generic-ienumerable-system-string-officeimo-reader-readeroptions-officeimo-reader-readerbatchoptions-action-officeimo-reader-readerdocumentreadoutcome-threading-cancellationtoken)

### Accepted by parameters 2

- Method [OfficeDocumentReader.ReadDocumentsAsCompletedAsync](/api/reader/officeimo-reader-officedocumentreader/#method-readdocumentsascompletedasync-collections-generic-ienumerable-system-string-action-officeimo-reader-readerdocumentreadoutcome-officeimo-reader-readeroptions-officeimo-reader-readerbatchoptions-threading-cancellationtoken) parameter `onCompleted`
- Method [OfficeDocumentReader.ReadDocumentsDetailedAsync](/api/reader/officeimo-reader-officedocumentreader/#method-readdocumentsdetailedasync-collections-generic-ienumerable-system-string-officeimo-reader-readeroptions-officeimo-reader-readerbatchoptions-action-officeimo-reader-readerdocumentreadoutcome-threading-cancellationtoken) parameter `onCompleted`

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int Index { get; }` [#](#property-index)

[ReaderDocumentReadOutcome.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/ReaderDocumentReadOutcome.cs#L21)

Zero-based input position assigned after path expansion.

`public string Path { get; }` [#](#property-path)

[ReaderDocumentReadOutcome.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/ReaderDocumentReadOutcome.cs#L24)

Resolved source path.

`public OfficeDocumentReadResult? Document { get; }` [#](#property-document)

[ReaderDocumentReadOutcome.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/ReaderDocumentReadOutcome.cs#L27)

Document result when reading succeeded.

`public Exception? Error { get; }` [#](#property-error)

[ReaderDocumentReadOutcome.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/ReaderDocumentReadOutcome.cs#L30)

Original read exception when reading failed.

`public string? ErrorCode { get; }` [#](#property-errorcode)

[ReaderDocumentReadOutcome.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/ReaderDocumentReadOutcome.cs#L36)

Stable [ReaderErrorCodes](/api/reader/officeimo-reader-readererrorcodes/) value for a failed read, such as [ReaderErrorCodes.PasswordRequired](/api/reader/officeimo-reader-readererrorcodes/); null when reading succeeded.

`public bool Succeeded { get; }` [#](#property-succeeded)

[ReaderDocumentReadOutcome.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Reader.Core/ReaderDocumentReadOutcome.cs#L39)

True when the document was read successfully.

<!-- PowerForge markdown artifact sha256:57411B4314E8A9694DCA2C3D4CEB2CC4EAC999E72BD3A51A4E3F455ED817160B -->
