Table of Contents

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

stream Stream

The seekable stream holding the container.

ownedSpillStream Stream

An optional spill stream disposed with this instance.

Returns

EncryptedOfficePackage

The opened package.

Exceptions

ArgumentNullException

stream is null.

InvalidDocumentException

The stream is not an encrypted Office package.