DataProtectionPermissionFlags Enumeration
.NET Framework (current version)
Specifies the access permissions for encrypting data and memory.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Assembly: System.Security (in System.Security.dll)
| Member name | Description | |
|---|---|---|
| AllFlags | The ability to encrypt data, encrypt memory, unencrypt data, and unencrypt memory. | |
| NoFlags | No protection abilities. | |
| ProtectData | The ability to encrypt data. | |
| ProtectMemory | The ability to encrypt memory. | |
| UnprotectData | The ability to unencrypt data. | |
| UnprotectMemory | The ability to unencrypt memory. |
This enumeration is used by the DataProtectionPermission and DataProtectionPermissionAttribute classes to protect access to encrypted data and memory using the ProtectedData and ProtectedMemory classes.
Caution |
|---|
Many of these flags can have powerful effects and should be granted only to highly trusted code. |
.NET Framework
Available since 2.0
Available since 2.0
Show:
