ProtectionManager Class

Presentation password protection management.
Inheritance Hierarchy

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: (21.11)
public sealed class ProtectionManager : IProtectionManager

The ProtectionManager type exposes the following members.

Public propertyEncryptDocumentProperties
This property makes sense, if presentation is password protected. If true then document properties is encrypted in presentation file. If false then document properties is public while presentation is encrypted. Read/write Boolean.
Public propertyEncryptionPassword
Gets the password which is used for presentation encryption. Read-only String.
Public propertyIsEncrypted
Gets a value indicating whether this instance is encrypted. Read-only Boolean.
Public propertyIsOnlyDocumentPropertiesLoaded
This property makes sense, if presentation file is password protected and document properties of this file are public. Value of true means that only document properties are loaded from an encrypted presentation file without use of password. Value of false means that entire encrypted presentation is loaded with use of right password, not only document properties are loaded. If presentation isn't encrypted then property value is always false. If document properties of an encrypted file aren't public then property value is always false. If Presentation.EncryptDocumentProperties is true than IsOnlyDocumentPropertiesLoaded property value is always false. Read-only Boolean.
Public propertyIsWriteProtected
Gets a value indicating whether this presentation is write protected. Read-only Boolean.
Public propertyCode exampleReadOnlyRecommended
Gets or sets read-only recommendation. Read/write Boolean.
Public methodCode exampleCheckWriteProtection
Determines whether a presentation is a password protected to modify.
Public methodEncrypt
Encrypts Presentation with specified password.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemoveEncryption
Removes the encryption.
Public methodRemoveWriteProtection
Removes write protection for this presentation.
Public methodSetWriteProtection
Set write protection for this presentation with specified password.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also