System.Security.Permissions.DataProtectionPermissionFlags Enumeration

Specifies the access permissions for encrypting data and memory.

Syntax

[System.Flags]
public enum DataProtectionPermissionFlags

Remarks

This enumeration is used by the System.Security.Permissions.DataProtectionPermission and System.Security.Permissions.DataProtectionPermissionAttribute classes to protect access to encrypted data and memory using the System.Security.Cryptography.ProtectedData and System.Security.Cryptography.ProtectedMemory classes.

Note:

Many of these flags can have powerful effects and should be granted only to highly trusted code.

Members

Member NameDescription
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.

Requirements

Namespace: System.Security.Permissions
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0