# OfficeProvenanceRemover

Removes selected standards-defined provenance carriers while preserving unrelated data.

Class 

`OfficeIMO.Provenance`

**Namespace**

`OfficeIMO.Provenance`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeProvenanceInspector.cs:313](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceInspector.cs#L313)

**Modifiers**

static

Removes selected standards-defined provenance carriers while preserving unrelated data.

## Inheritance

- object
- OfficeProvenanceRemover

Filter members 

Show inherited

## Methods

`public static OfficeProvenanceRemovalResult Remove(byte[] data, string? fileName = null, OfficeProvenanceRemovalOptions? options = null)` [#](#method-remove-byte-string-officeimo-provenance-officeprovenanceremovaloptions)

[OfficeProvenanceInspector.cs:313](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceInspector.cs#L313)

Removes selected provenance from encoded asset bytes.

Parameters

**data byte[] required**

**fileName string? = null optional**

**options OfficeIMO.Provenance.OfficeProvenanceRemovalOptions? = null optional**

Returns

`OfficeProvenanceRemovalResult`

`public static OfficeProvenanceRemovalResult RemoveFile(string inputPath, string outputPath, OfficeProvenanceRemovalOptions? options = null)` [#](#method-removefile-string-string-officeimo-provenance-officeprovenanceremovaloptions)

[OfficeProvenanceInspector.cs:444](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Provenance/OfficeProvenanceInspector.cs#L444)

Removes selected provenance from a file and atomically commits the output.

Parameters

**inputPath string required**

**outputPath string required**

**options OfficeIMO.Provenance.OfficeProvenanceRemovalOptions? = null optional**

Returns

`OfficeProvenanceRemovalResult`

## 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?`

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