SetWriteProtection()
ProtectionManager::SetWriteProtection(System::String) method
Set write protection for this presentation with specified password.
void Aspose::Slides::ProtectionManager::SetWriteProtection(System::String password) override
Arguments
Parameter | Type | Description |
---|---|---|
password | System::String | The password. |
Remarks
The following sample code shows you how to set a write protection to a presentation.
auto presentation = System::MakeObject<Presentation>(u"pres.pptx");
presentation->get_ProtectionManager()->SetWriteProtection(u"123123");
presentation->Save(u"write-protected-pres.pptx", SaveFormat::Pptx);
See Also
- Class String
- Class ProtectionManager
- Namespace Aspose::Slides
- Library Aspose.Slides