# OfficeProvenanceInspector

Inspects standards-defined provenance carriers without performing cryptographic validation.

Class 

`OfficeIMO.Provenance`

**Namespace**

`OfficeIMO.Provenance`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

static

Inspects standards-defined provenance carriers without performing cryptographic validation.

## Inheritance

- object
- OfficeProvenanceInspector

Filter members 

Show inherited

## Methods

Inspect 2 overloads

`public static OfficeProvenanceReport Inspect(Stream stream, string? fileName = null, OfficeProvenanceOptions? options = null)` [#](#method-inspect-io-stream-string-officeimo-provenance-officeprovenanceoptions)

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

Inspects a bounded asset stream and restores its original position when seekable.

Parameters

**stream System.IO.Stream required**

**fileName string? = null optional**

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

Returns

`OfficeProvenanceReport`

`public static OfficeProvenanceReport Inspect(byte[] data, string? fileName = null, OfficeProvenanceOptions? options = null)` [#](#method-inspect-byte-string-officeimo-provenance-officeprovenanceoptions)

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

Inspects bounded encoded asset bytes.

Parameters

**data byte[] required**

**fileName string? = null optional**

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

Returns

`OfficeProvenanceReport`

`public static OfficeProvenanceReport InspectFile(string filePath, OfficeProvenanceOptions? options = null)` [#](#method-inspectfile-string-officeimo-provenance-officeprovenanceoptions)

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

Inspects an asset file using bounded structural parsers.

Parameters

**filePath string required**

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

Returns

`OfficeProvenanceReport`

`public static OfficeProvenanceReport InspectXmp(byte[] packet, OfficeProvenanceOptions? options = null)` [#](#method-inspectxmp-byte-officeimo-provenance-officeprovenanceoptions)

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

Inspects an independent XMP packet for standardized IPTC Digital Source Type declarations.

Parameters

**packet byte[] required**

Encoded XMP XML extracted from a container or a sidecar.

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

Byte, carrier, and XML node limits. Default limits apply when omitted.

Returns

`OfficeProvenanceReport` A report whose format is unknown because the packet does not identify an asset container.

## 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:D2871E00FAD2DD940DBDF8BF234AA3E1CD9B2999E4A516F5DD3E6FA0AA47E590 -->
