DataProtectionPermissionFlags Enum

Definition

Specifies the access permissions for encrypting data and memory.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum class DataProtectionPermissionFlags
[System.Flags]
[System.Serializable]
public enum DataProtectionPermissionFlags
type DataProtectionPermissionFlags = 
Public Enum DataProtectionPermissionFlags
Inheritance
DataProtectionPermissionFlags
Attributes

Fields

AllFlags 15

The ability to encrypt data, encrypt memory, unencrypt data, and unencrypt memory.

NoFlags 0

No protection abilities.

ProtectData 1

The ability to encrypt data.

ProtectMemory 4

The ability to encrypt memory.

UnprotectData 2

The ability to unencrypt data.

UnprotectMemory 8

The ability to unencrypt memory.

Remarks

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.

Applies to