# OfficeEmbeddedPayloadInspection

One bounded inert payload inventory and cumulative read operation.

Class 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`a38c94e0e371` with working tree changes

**Source**

[OfficeEmbeddedPayloadInspection.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/a38c94e0e3714906311b53fc7a411c26163a9535/OfficeIMO.Core/Documents/OfficeEmbeddedPayloadInspection.cs#L51)

**Implements**

`IDisposable`

**Modifiers**

sealed

One bounded inert payload inventory and cumulative read operation.

## Inheritance

- object
- OfficeEmbeddedPayloadInspection

## Remarks

Keep the native document alive while requesting new reads. Each returned read-only stream is a complete detached copy owned by the caller and survives disposal of the native document and this session. Payloads are never executed and external targets are never resolved.

Filter members 

Show inherited

## Methods

`public void Dispose()` [#](#method-dispose)

[OfficeEmbeddedPayloadInspection.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/a38c94e0e3714906311b53fc7a411c26163a9535/OfficeIMO.Core/Documents/OfficeEmbeddedPayloadInspection.cs#L66)

Ends new-read access. Already-returned detached streams remain usable.

`public Stream OpenRead(int ordinal, CancellationToken cancellationToken = default)` [#](#method-openread-int32-threading-cancellationtoken)

[OfficeEmbeddedPayloadInspection.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/a38c94e0e3714906311b53fc7a411c26163a9535/OfficeIMO.Core/Documents/OfficeEmbeddedPayloadInspection.cs#L51)

Reads one complete payload within the snapshotted member and cumulative operation ceilings.

Parameters

**ordinal int required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Stream`

Exceptions

- `OfficeInspectionResourceLimitException` – A member, aggregate payload, or cumulative read ceiling is reached.

## 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 IReadOnlyList<OfficeEmbeddedPayloadInfo> Payloads { get; }` [#](#property-payloads)

[OfficeEmbeddedPayloadInspection.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/a38c94e0e3714906311b53fc7a411c26163a9535/OfficeIMO.Core/Documents/OfficeEmbeddedPayloadInspection.cs#L44)

Ordered native descriptors. Ordinals address this session only; identities remain native owner/relationship or source-profile identities.

`public long ReadBytes { get; }` [#](#property-readbytes)

[OfficeEmbeddedPayloadInspection.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/a38c94e0e3714906311b53fc7a411c26163a9535/OfficeIMO.Core/Documents/OfficeEmbeddedPayloadInspection.cs#L46)

Actual decoded bytes consumed by completed or failed reads and requested hashes.

<!-- PowerForge markdown artifact sha256:A660E28EAA4828BA84A098E55392A4B30394C2731CD45599B2A835746B1AE174 -->
