Interface IXLProtectable
public interface IXLProtectable
- Extension Methods
Properties
IsPasswordProtected
Gets a value indicating whether this instance is protected with a password.
bool IsPasswordProtected { get; }
Property Value
- bool
trueif this instance is password protected; otherwise,false.
IsProtected
Gets a value indicating whether this instance is protected, either with or without a password.
bool IsProtected { get; }
Property Value
- bool
trueif this instance is protected; otherwise,false.
Methods
Protect(Algorithm)
Protects this instance without a password.
IXLElementProtection Protect(XLProtectionAlgorithm.Algorithm algorithm = Algorithm.SimpleHash)
Parameters
algorithmXLProtectionAlgorithm.Algorithm
Returns
Protect(string, Algorithm)
Protects this instance using the specified password and password hash algorithm.
IXLElementProtection Protect(string password, XLProtectionAlgorithm.Algorithm algorithm = Algorithm.SimpleHash)
Parameters
passwordstringThe password.
algorithmXLProtectionAlgorithm.AlgorithmThe algorithm.
Returns
Unprotect()
Unprotects this instance without a password.
IXLElementProtection Unprotect()
Returns
Unprotect(string)
Unprotects this instance using the specified password.
IXLElementProtection Unprotect(string password)
Parameters
passwordstringThe password.