Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficePackageSecurityInspector

Namespace OfficeIMO
Assembly OfficeIMO.Core
Modifiers static

Inspects and validates Office package structure without executing active content.

Inheritance

  • Object
  • OfficePackageSecurityInspector

Methods

Inspect 2 overloads
public static OfficePackageSecurityReport Inspect(Byte[] packageBytes, OfficePackageSecurityOptions options = null) #
Returns: OfficePackageSecurityReport

Inspects package bytes using secure structural defaults.

Parameters

packageBytes System.Byte[] requiredposition: 0
options OfficeIMO.OfficePackageSecurityOptions = null optionalposition: 1
public static OfficePackageSecurityReport Inspect(Stream source, OfficePackageSecurityOptions options = null) #
Returns: OfficePackageSecurityReport

Reads and inspects a caller-owned stream while preserving its position when seekable.

Parameters

source System.IO.Stream requiredposition: 0
options OfficeIMO.OfficePackageSecurityOptions = null optionalposition: 1
Validate 2 overloads
public static OfficePackageSecurityReport Validate(Byte[] packageBytes, OfficePackageSecurityOptions options = null) #
Returns: OfficePackageSecurityReport

Validates package bytes and throws a typed exception for the first rejected finding.

Parameters

packageBytes System.Byte[] requiredposition: 0
options OfficeIMO.OfficePackageSecurityOptions = null optionalposition: 1
public static OfficePackageSecurityReport Validate(Stream source, OfficePackageSecurityOptions options = null) #
Returns: OfficePackageSecurityReport

Reads and validates a caller-owned stream while preserving its position when seekable.

Parameters

source System.IO.Stream requiredposition: 0
options OfficeIMO.OfficePackageSecurityOptions = null optionalposition: 1