DataProtectionPermission Constructor (DataProtectionPermissionFlags)
.NET Framework (current version)
Initializes a new instance of the DataProtectionPermission class with the specified permission flags.
Assembly: System.Security (in System.Security.dll)
Parameters
- flag
-
Type:
System.Security.Permissions::DataProtectionPermissionFlags
A bitwise combination of the DataProtectionPermissionFlags values.
| Exception | Condition |
|---|---|
| ArgumentException | flags is not a valid combination of the DataProtectionPermissionFlags values. |
The following code example shows the use of the DataProtectionPermission(DataProtectionPermissionFlags) constructor. 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: