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

ParameterTypeDescription
passwordSystem::StringThe 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