check_write_protection method
check_write_protection
Checks whether a password to modify is correct for a write protected presentation.
Returns
True if the presentation is write protected and the password is correct. False otherwise.
def check_write_protection(self, password):
...
| Parameter | Type | Description |
|---|---|---|
| password | str | The password to check. |
Remarks
- You should check the
IPresentationInfo.is_write_protectedproperty before calling this method. 2. When password is None or empty, this method returns false.
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(InvalidOperationException)) |
See Also
- class
IPresentationInfo - module
aspose.slides - library
Aspose.Slides