# OfficeProvenanceOptions

Bounds structural provenance inspection and removal.

Class 

`OfficeIMO.Provenance`

**Namespace**

`OfficeIMO.Provenance`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeProvenanceContracts.cs:190](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceContracts.cs#L190)

**Modifiers**

sealed

Bounds structural provenance inspection and removal.

## Inheritance

- object
- OfficeProvenanceOptions

## Usage

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

- Property [OfficeProvenanceAssessmentOptions.Structural](/api/core/officeimo-provenance-officeprovenanceassessmentoptions/#property-structural)
- Property [OfficeProvenanceRemovalOptions.Limits](/api/core/officeimo-provenance-officeprovenanceremovaloptions/#property-limits)
- Property [OfficeProvenanceTransformationOptions.Inspection](/api/core/officeimo-provenance-officeprovenancetransformationoptions/#property-inspection)

### Accepted by parameters 3

- Method [OfficeProvenanceInspector.Inspect](/api/core/officeimo-provenance-officeprovenanceinspector/#method-inspect-io-stream-string-officeimo-provenance-officeprovenanceoptions) parameter `options`
- Method [OfficeProvenanceInspector.InspectFile](/api/core/officeimo-provenance-officeprovenanceinspector/#method-inspectfile-string-officeimo-provenance-officeprovenanceoptions) parameter `options`
- Method [OfficeProvenanceInspector.InspectXmp](/api/core/officeimo-provenance-officeprovenanceinspector/#method-inspectxmp-byte-officeimo-provenance-officeprovenanceoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public OfficeProvenanceOptions()` [#](#constructor-ctor)

[OfficeProvenanceContracts.cs:190](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceContracts.cs#L190)

## 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 long MaxAssetBytes { get; set; }` [#](#property-maxassetbytes)

[OfficeProvenanceContracts.cs:190](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceContracts.cs#L190)

Maximum encoded asset bytes accepted. Defaults to 256 MiB.

`public long MaxManifestBytes { get; set; }` [#](#property-maxmanifestbytes)

[OfficeProvenanceContracts.cs:192](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceContracts.cs#L192)

Maximum single C2PA manifest store bytes. PNG iTXt XMP packets also use this cap; other XMP carriers remain bounded by the asset limit. Defaults to 64 MiB.

`public int MaxCarriers { get; set; }` [#](#property-maxcarriers)

[OfficeProvenanceContracts.cs:194](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceContracts.cs#L194)

Maximum carriers accepted in one asset. Defaults to 128.

`public int MaxContainerEntries { get; set; }` [#](#property-maxcontainerentries)

[OfficeProvenanceContracts.cs:196](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceContracts.cs#L196)

Maximum structural entries or materialized XML nodes accepted in a container. Defaults to 65,536.

`public long MaxExpandedContainerBytes { get; set; }` [#](#property-maxexpandedcontainerbytes)

[OfficeProvenanceContracts.cs:198](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceContracts.cs#L198)

Maximum cumulative expanded bytes decoded, inspected, or copied across a container, its embedded assets, or its external provenance dependencies. Defaults to 1 GiB.

`public bool ProcessEmbeddedAssets { get; set; }` [#](#property-processembeddedassets)

[OfficeProvenanceContracts.cs:200](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceContracts.cs#L200)

Whether supported image assets inside ZIP-based documents are inspected. Defaults to true.

`public int MaxEmbeddedAssets { get; set; }` [#](#property-maxembeddedassets)

[OfficeProvenanceContracts.cs:202](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceContracts.cs#L202)

Maximum supported embedded assets inspected in one container. Defaults to 4,096.

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