Worksheet
CheckProtectionPassword Method
|
Checks if the provided password matches the protection password of the worksheet.
Namespace:
Spire.Xls
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public bool CheckProtectionPassword(
string password
)
Public Function CheckProtectionPassword (
password As String
) As Boolean
public:
bool CheckProtectionPassword(
String^ password
)
member CheckProtectionPassword :
password : string -> bool
Parameters
-
password
-
Type:
System
String
The password to be verified.
Return Value
Type:
Boolean
Returns true if the password is correct or if both the password and the protection algorithm info are null; otherwise, returns false.
See Also