ReflectionPermission Constructor (ReflectionPermissionFlag)
.NET Framework (current version)
Initializes a new instance of the ReflectionPermission class with the specified access.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- flag
-
Type:
System.Security.Permissions::ReflectionPermissionFlag
One of the ReflectionPermissionFlag values.
| Exception | Condition |
|---|---|
| ArgumentException | The flag parameter is not a valid value of ReflectionPermissionFlag. |
The following code example shows the use of the ReflectionPermission::ReflectionPermission(ReflectionPermissionFlag) constructor. This example is part of a larger example provided for the ReflectionPermission class.
.NET Framework
Available since 1.1
Available since 1.1
Show: