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.0.0 (21.11)
Syntax
NullableBool IsWriteProtected { get; }

Property Value

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