get_IsWriteProtected()
IPresentationInfo::get_IsWriteProtected() method
Gets a value that indicates whether a binded presentation is write protected.
virtual NullableBool Aspose::Slides::IPresentationInfo::get_IsWriteProtected()=0
Remarks
auto info = PresentationFactory::get_Instance()->GetPresentationInfo(presentationFilePath);
if (info->get_IsWriteProtected() == Aspose::Slides::NullableBool::True)
{
System::Console::WriteLine(System::String(u"The presentation '") + presentationFilePath + u"' is write protected by a password.");
}
If the presentation is protected by a password to open, the property value equals NotDefined. See NullableBool enumeration.
See Also
- Enum NullableBool
- Class IPresentationInfo
- Namespace Aspose::Slides
- Library Aspose.Slides