IPresentationInfoIsWriteProtected Property

Gets a value that indicates whether a binded presentation is write protected.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: (21.11)
NullableBool IsWriteProtected { get; }

Property Value

Type: NullableBool
If the presentation is protected by a password to open, the property value equals NotDefined. See NullableBool enumeration.
IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(presentationFilePath);
if (info.IsWriteProtected == NullableBool.True)
    Console.WriteLine("The presentation '" + presentationFilePath + "' is write protected by a password.");
See Also