DataProtectionPermissionAttribute.UnprotectData Property

 

Gets or sets a value indicating whether data can be unencrypted using the ProtectedData class.

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

public bool UnprotectData { get; set; }

Property Value

Type: System.Boolean

true if data can be unencrypted; otherwise, false.

If this value is false, a SecurityException occurs when the ProtectedData.Unprotect method is called.

.NET Framework
Available since 2.0
Return to top
Show: