# OfficeProvenanceRemovalResult

Result of a provenance-removal operation.

Class 

`OfficeIMO.Provenance`

**Namespace**

`OfficeIMO.Provenance`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

sealed

Result of a provenance-removal operation.

## Inheritance

- object
- OfficeProvenanceRemovalResult

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

- Method [OfficeProvenanceRemover.Remove](/api/core/officeimo-provenance-officeprovenanceremover/#method-remove-byte-string-officeimo-provenance-officeprovenanceremovaloptions)
- Method [OfficeProvenanceRemover.RemoveFile](/api/core/officeimo-provenance-officeprovenanceremover/#method-removefile-string-string-officeimo-provenance-officeprovenanceremovaloptions)
- Property [OfficeProvenanceTransformationResult.Removal](/api/core/officeimo-provenance-officeprovenancetransformationresult/#property-removal)

### Accepted by parameters 1

- Constructor [OfficeProvenanceTransformationResult.OfficeProvenanceTransformationResult](/api/core/officeimo-provenance-officeprovenancetransformationresult/#constructor-ctor-officeimo-provenance-officeprovenancetransformationpolicy-boolean-officeimo-provenance-officeprovenancereport-officeimo-provenance-officeprovenancereport-officeimo-provenance-officeprovenancereport-officeimo-provenance-officeprovenanceremovalresult-officeimo-provenance-officeprovenancesigningresult) parameter `removal`

Filter members 

Show inherited

## Constructors

OfficeProvenanceRemovalResult 2 overloads

`public OfficeProvenanceRemovalResult(byte[] data, OfficeProvenanceReport before, OfficeProvenanceReport after, IReadOnlyList<OfficeProvenanceChange> changes, bool wasReserialized)` [#](#constructor-ctor-byte-officeimo-provenance-officeprovenancereport-officeimo-provenance-officeprovenancereport-collections-generic-ireadonlylist-officeimo-provenance-officeprovenancechange-boolean)

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

Creates a provenance-removal result.

Parameters

**data byte[] required**

**before OfficeIMO.Provenance.OfficeProvenanceReport required**

**after OfficeIMO.Provenance.OfficeProvenanceReport required**

**changes System.Collections.Generic.IReadOnlyList<OfficeIMO.Provenance.OfficeProvenanceChange> required**

**wasReserialized bool required**

`public OfficeProvenanceRemovalResult(byte[] data, OfficeProvenanceReport before, OfficeProvenanceReport after, IReadOnlyList<OfficeProvenanceChange> changes, bool wasReserialized, bool wereInvalidatedSignaturesRemoved)` [#](#member-71ecf675969a605ea4c03fb6)

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

Creates a provenance-removal result and records whether invalidated signatures were removed.

Parameters

**data byte[] required**

**before OfficeIMO.Provenance.OfficeProvenanceReport required**

**after OfficeIMO.Provenance.OfficeProvenanceReport required**

**changes System.Collections.Generic.IReadOnlyList<OfficeIMO.Provenance.OfficeProvenanceChange> required**

**wasReserialized bool required**

**wereInvalidatedSignaturesRemoved bool required**

## Methods

`public byte[] ToArray()` [#](#method-toarray)

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

Returns an owned copy of the resulting asset.

Returns

`byte[]`

## 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 OfficeProvenanceReport Before { get; }` [#](#property-before)

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

Gets the inspection before removal.

`public OfficeProvenanceReport After { get; }` [#](#property-after)

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

Gets the inspection after removal.

`public IReadOnlyList<OfficeProvenanceChange> Changes { get; }` [#](#property-changes)

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

Gets format-native changes in source order.

`public bool WasChanged { get; }` [#](#property-waschanged)

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

Gets whether any carrier changed.

`public bool WasReserialized { get; }` [#](#property-wasreserialized)

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

Gets whether the container was serialized rather than copied byte-for-byte around removed carriers.

`public bool WereInvalidatedSignaturesRemoved { get; }` [#](#property-wereinvalidatedsignaturesremoved)

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

Gets whether an owning document API removed signatures that the provenance mutation invalidated.

<!-- PowerForge markdown artifact sha256:0153CE2925DE235F33D6C0E1A2BF6A7D8B212472498015FD90B078F4C2EC177F -->
