CheckWriteProtection()
IProtectionManager::CheckWriteProtection(System::String) method
Determines whether a presentation is a password protected to modify.
virtual bool Aspose::Slides::IProtectionManager::CheckWriteProtection(System::String password)=0
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 IProtectionManager::get_IsWriteProtected property before calling this method.
- When the password is null or empty, this method returns false.
See Also
- Class String
- Class IProtectionManager
- Namespace Aspose::Slides
- Library Aspose.Slides