Method IsEncrypted
- Namespace
- DocWright.Spreadsheet.Security
- Assembly
- DocWright.Spreadsheet.Security.dll
IsEncrypted(Stream)
Gets whether a stream holds an encrypted Office package (and not a plain workbook).
public static bool IsEncrypted(Stream input)
Parameters
inputStreamThe stream, read from its current position, which is restored.
Returns
- bool
True when it is an encrypted package.
Exceptions
- ArgumentNullException
inputis null.- ArgumentException
inputis not seekable.