Version

IsWorkbookEncrypted Method

Determines whether the workbook in the specified stream is encrypted with an open password.
Syntax
public static bool IsWorkbookEncrypted( 
   Stream stream
)

Parameters

stream
The stream to check for encryption.

Return Value

True if the stream contains a workbook which is encrypted; False otherwise
Exceptions
ExceptionDescription
System.ArgumentNullExceptionOccurs when stream is null.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also