Class
OfficePackageSecurityInspector
OfficeIMO
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[]
- options OfficeIMO.OfficePackageSecurityOptions? = null
Returns
OfficePackageSecurityReportpublic 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
- options OfficeIMO.OfficePackageSecurityOptions? = null
Returns
OfficePackageSecurityReportValidate 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[]
- options OfficeIMO.OfficePackageSecurityOptions? = null
Returns
OfficePackageSecurityReportpublic 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
- options OfficeIMO.OfficePackageSecurityOptions? = null
Returns
OfficePackageSecurityReport