get_IsPasswordProtected()

IPresentationInfo::get_IsPasswordProtected() method

Gets a value that indicates whether a binded presentation is protected by a password to open.

virtual bool Aspose::Slides::IPresentationInfo::get_IsPasswordProtected()=0

Remarks

auto info = PresentationFactory::get_Instance()->GetPresentationInfo(presentationFilePath);
if (info->get_IsPasswordProtected())
{
    System::Console::WriteLine(System::String(u"The presentation '") + presentationFilePath + u"' is protected by a password to open.");
}

See Also