CheckWriteProtection

ProtectionManager.CheckWriteProtection method

Determines whether a presentation is a password protected to modify.

public bool CheckWriteProtection(string password)
ParameterTypeDescription
passwordStringThe password for checking.

Return Value

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