DataProtectionPermission::Flags Property
.NET Framework (current version)
Gets or sets the data and memory protection flags.
Assembly: System.Security (in System.Security.dll)
public: property DataProtectionPermissionFlags Flags { DataProtectionPermissionFlags get(); void set(DataProtectionPermissionFlags value); }
Property Value
Type: System.Security.Permissions::DataProtectionPermissionFlagsA bitwise combination of the DataProtectionPermissionFlags values.
| Exception | Condition |
|---|---|
| ArgumentException | The specified value is not a valid combination of the DataProtectionPermissionFlags values. |
This property specifies whether the Protect and Unprotect methods of the ProtectedData and ProtectedMemory classes can be used.
The following code example shows the use of the Flags property. This code example is part of a larger example provided for the DataProtectionPermission class.
.NET Framework
Available since 2.0
Available since 2.0
Show: