Workbook
IsPasswordProtected Method (Stream)
|
Determines if a workbook is password-protected.
Namespace:
Spire.Xls
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public static bool IsPasswordProtected(
Stream stream
)
Public Shared Function IsPasswordProtected (
stream As Stream
) As Boolean
public:
static bool IsPasswordProtected(
Stream^ stream
)
static member IsPasswordProtected :
stream : Stream -> bool
Parameters
-
stream
-
Type:
System.IO
Stream
The stream containing the workbook.
Return Value
Type:
Boolean
True if the workbook is password-protected, false otherwise.
See Also