Method Open
- Namespace
- DocWright.Cryptography
- Assembly
- DocWright.Cryptography.dll
Open(Stream, Stream?)
Opens an encrypted Office package and parses its descriptor. Does not decrypt and needs no password.
public static EncryptedOfficePackage Open(Stream stream, Stream? ownedSpillStream = null)
Parameters
streamStreamThe seekable stream holding the container.
ownedSpillStreamStreamAn optional spill stream disposed with this instance.
Returns
- EncryptedOfficePackage
The opened package.
Exceptions
- ArgumentNullException
streamis null.- InvalidDocumentException
The stream is not an encrypted Office package.