KeyContainerPermission Constructor (KeyContainerPermissionFlags)
.NET Framework (current version)
Initializes a new instance of the KeyContainerPermission class with the specified access.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- flags
-
Type:
System.Security.Permissions::KeyContainerPermissionFlags
A bitwise combination of the KeyContainerPermissionFlags values.
| Exception | Condition |
|---|---|
| ArgumentException | flags is not a valid combination of the KeyContainerPermissionFlags values. |
The following code example shows the use of the KeyContainerPermission::KeyContainerPermission(KeyContainerPermissionFlags) constructor.
.NET Framework
Available since 2.0
Available since 2.0
Show: