# OfficePackageSecurityReport

Inventory and validation findings produced without executing package content.

Class 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficePackageSecurity.cs:164](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L164)

**Modifiers**

sealed

Inventory and validation findings produced without executing package content.

## Inheritance

- object
- OfficePackageSecurityReport

## Usage

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

- Method [OfficePackageSecurityInspector.Inspect](/api/core/officeimo-officepackagesecurityinspector/#method-inspect-byte-officeimo-officepackagesecurityoptions)
- Method [OfficePackageSecurityInspector.Validate](/api/core/officeimo-officepackagesecurityinspector/#method-validate-byte-officeimo-officepackagesecurityoptions)

Filter members 

Show inherited

## 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 PackageBytes { get; }` [#](#property-packagebytes)

[OfficePackageSecurity.cs:164](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L164)

Complete source size in bytes.

`public OfficePackageContainerKind ContainerKind { get; }` [#](#property-containerkind)

[OfficePackageSecurity.cs:167](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L167)

Detected physical container.

`public int PartCount { get; }` [#](#property-partcount)

[OfficePackageSecurity.cs:170](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L170)

Number of non-directory ZIP parts or non-root compound directory entries.

`public long TotalUncompressedBytes { get; }` [#](#property-totaluncompressedbytes)

[OfficePackageSecurity.cs:173](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L173)

Aggregate uncompressed ZIP part size.

`public long LargestPartBytes { get; }` [#](#property-largestpartbytes)

[OfficePackageSecurity.cs:176](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L176)

Largest uncompressed part size.

`public double HighestCompressionRatio { get; }` [#](#property-highestcompressionratio)

[OfficePackageSecurity.cs:179](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L179)

Highest observed ZIP compression ratio.

`public int MacroPartCount { get; }` [#](#property-macropartcount)

[OfficePackageSecurity.cs:182](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L182)

Number of VBA project parts.

`public int EmbeddedPayloadPartCount { get; }` [#](#property-embeddedpayloadpartcount)

[OfficePackageSecurity.cs:185](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L185)

Number of embedded package or OLE payload parts.

`public int ActiveXPartCount { get; }` [#](#property-activexpartcount)

[OfficePackageSecurity.cs:188](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L188)

Number of ActiveX parts.

`public int ExternalRelationshipCount { get; }` [#](#property-externalrelationshipcount)

[OfficePackageSecurity.cs:191](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L191)

Number of relationships with an external target.

`public int DigitalSignaturePartCount { get; }` [#](#property-digitalsignaturepartcount)

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

Number of digital-signature package parts.

`public IReadOnlyList<OfficePackageSecurityFinding> Findings { get; }` [#](#property-findings)

[OfficePackageSecurity.cs:197](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficePackageSecurity.cs#L197)

Findings produced by structural validation and the selected content policy.

`public bool IsValid { get; }` [#](#property-isvalid)

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

True when the report contains no error findings.

<!-- PowerForge markdown artifact sha256:1AE9D7B3CA96C37D619AA5222FCCF650F5FFE46E14EBE81F348EC9E25A02F20B -->
