# OfficeProvenanceRemovalOptions

Controls selective provenance removal.

Class 

`OfficeIMO.Provenance`

**Namespace**

`OfficeIMO.Provenance`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

sealed

Controls selective provenance removal.

## Inheritance

- object
- OfficeProvenanceRemovalOptions

## Usage

Explore 4 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 2

- Property [OfficeHiddenDataOptions.Provenance](/api/core/officeimo-officehiddendataoptions/#property-provenance)
- Property [OfficeProvenanceTransformationOptions.Removal](/api/core/officeimo-provenance-officeprovenancetransformationoptions/#property-removal)

### Accepted by parameters 2

- Method [OfficeProvenanceRemover.Remove](/api/core/officeimo-provenance-officeprovenanceremover/#method-remove-byte-string-officeimo-provenance-officeprovenanceremovaloptions) parameter `options`
- Method [OfficeProvenanceRemover.RemoveFile](/api/core/officeimo-provenance-officeprovenanceremover/#method-removefile-string-string-officeimo-provenance-officeprovenanceremovaloptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

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

## 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 bool RemoveC2paManifests { get; set; }` [#](#property-removec2pamanifests)

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

Whether embedded C2PA Manifest Stores are removed. Defaults to true.

`public bool RemoveExternalC2paReferences { get; set; }` [#](#property-removeexternalc2pareferences)

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

Whether external C2PA references are removed. Defaults to true.

`public bool RemoveAiSourceMetadata { get; set; }` [#](#property-removeaisourcemetadata)

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

Whether AI-specific IPTC Digital Source Type declarations are removed. Defaults to true.

`public bool RequireStructurallyValidCarrier { get; set; }` [#](#property-requirestructurallyvalidcarrier)

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

Whether malformed carriers are preserved instead of removed. Defaults to true.

`public OfficeSignatureMutationPolicy SignatureMutationPolicy { get; set; }` [#](#property-signaturemutationpolicy)

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

Controls how package signatures invalidated by removal are handled. Defaults to blocking mutation.

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

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

Whether document integrations inspect and sanitize supported embedded assets. Defaults to true.

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

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

Maximum embedded assets processed by one document operation. Defaults to 4096.

`public long? MaxOutputBytes { get; set; }` [#](#property-maxoutputbytes)

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

Maximum encoded bytes that the rewritten asset may contain. A null value preserves the historical behavior by using [OfficeProvenanceOptions.MaxAssetBytes](/api/core/officeimo-provenance-officeprovenanceoptions/).

`public OfficeProvenanceOptions Limits { get; }` [#](#property-limits)

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

Inspection and removal resource limits.

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