IProtectionManagerCheckWriteProtection Method

Determines whether a presentation is a password protected to modify.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.2.0.0 (21.2)
Syntax
bool CheckWriteProtection(
	string password
)

Parameters

password
Type: SystemString
The password for checking.

Return Value

Type: Boolean
True if the password is valid; otherwise, false.
Remarks
1. 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