DataProtectionPermissionFlags Enumeration

 

Specifies the access permissions for encrypting data and memory.

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

Namespace:   System.Security.Permissions
Assembly:  System.Security (in System.Security.dll)

[SerializableAttribute]
[FlagsAttribute]
public enum DataProtectionPermissionFlags

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.

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

System_CAPS_cautionCaution

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

.NET Framework
Available since 2.0
Return to top
Show: