set_Password()

LoadOptions::set_Password(System::String) method

Sets the password. Write System::String.

void Aspose::Slides::LoadOptions::set_Password(System::String value) override

Remarks

The password.

The following sample code shows how to open password protected PowerPoint Presentation.

System::SharedPtr<LoadOptions> loadOptions = System::MakeObject<LoadOptions>();
loadOptions->set_Password(u"YOUR_PASSWORD");
auto presentation = System::MakeObject<Presentation>(u"pres.pptx", loadOptions);
// work with decrypted presentation

See Also