Table of Contents

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

input Stream

The stream, read from its current position, which is restored.

Returns

bool

True when it is an encrypted package.

Exceptions

ArgumentNullException

input is null.

ArgumentException

input is not seekable.