Click or drag to resize

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
)

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