CheckWriteProtection
IProtectionManager.CheckWriteProtection method
Determines whether a presentation is a password protected to modify.
public bool CheckWriteProtection(string password)
Parameter | Type | Description |
---|---|---|
password | String | The password for checking. |
Return Value
True if the password is valid; otherwise, false.
Remarks
- You should check the
IsWriteProtected
property before calling this method. 2. When the password is null or empty, this method returns false.
Examples
[C#]
using (var presentation = new Presentation(presentationFilePath))
{
var isWriteProtected = presentation.ProtectionManager.CheckWriteProtection("my_password");
}
See Also
- interface IProtectionManager
- namespace Aspose.Slides
- assembly Aspose.Slides