CheckWriteProtection()
ProtectionManager::CheckWriteProtection(System::String) method
Determines whether a presentation is a password protected to modify.
bool Aspose::Slides::ProtectionManager::CheckWriteProtection(System::String password) override
Arguments
Parameter | Type | Description |
---|---|---|
password | System::String | The password for checking. |
Return Value
True if the password is valid; otherwise, false.
Remarks
auto presentation = System::MakeObject<Presentation>(presentationFilePath);
bool isWriteProtected = presentation->get_ProtectionManager()->CheckWriteProtection(u"my_password");
- You should check the ProtectionManager::get_IsWriteProtected property before calling this method.
- When the password is null or empty, this method returns false.
See Also
- Class String
- Class ProtectionManager
- Namespace Aspose::Slides
- Library Aspose.Slides