Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficePackageSecurityInspector

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
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) #

Inspects package bytes using secure structural defaults.

Parameters

packageBytes byte[] required
options OfficeIMO.OfficePackageSecurityOptions? = null optional
public static OfficePackageSecurityReport Inspect(Stream source, OfficePackageSecurityOptions? options = null) #

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

Parameters

source System.IO.Stream required
options OfficeIMO.OfficePackageSecurityOptions? = null optional
Validate 2 overloads
public static OfficePackageSecurityReport Validate(byte[] packageBytes, OfficePackageSecurityOptions? options = null) #

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

Parameters

packageBytes byte[] required
options OfficeIMO.OfficePackageSecurityOptions? = null optional
public static OfficePackageSecurityReport Validate(Stream source, OfficePackageSecurityOptions? options = null) #

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

Parameters

source System.IO.Stream required
options OfficeIMO.OfficePackageSecurityOptions? = null optional