API Reference
Class
OfficePackageSecurityInspector
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:
OfficePackageSecurityReportInspects package bytes using secure structural defaults.
Parameters
- packageBytes System.Byte[]
- options OfficeIMO.OfficePackageSecurityOptions = null
public static OfficePackageSecurityReport Inspect(Stream source, OfficePackageSecurityOptions options = null) #Returns:
OfficePackageSecurityReportReads and inspects a caller-owned stream while preserving its position when seekable.
Parameters
- source System.IO.Stream
- options OfficeIMO.OfficePackageSecurityOptions = null
Validate 2 overloads
public static OfficePackageSecurityReport Validate(Byte[] packageBytes, OfficePackageSecurityOptions options = null) #Returns:
OfficePackageSecurityReportValidates package bytes and throws a typed exception for the first rejected finding.
Parameters
- packageBytes System.Byte[]
- options OfficeIMO.OfficePackageSecurityOptions = null
public static OfficePackageSecurityReport Validate(Stream source, OfficePackageSecurityOptions options = null) #Returns:
OfficePackageSecurityReportReads and validates a caller-owned stream while preserving its position when seekable.
Parameters
- source System.IO.Stream
- options OfficeIMO.OfficePackageSecurityOptions = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object