EventLogPermission Constructor (PermissionState)
.NET Framework (current version)
Initializes a new instance of the EventLogPermission class with the specified permission state.
Assembly: System (in System.dll)
Parameters
- state
-
Type:
System.Security.Permissions::PermissionState
One of the enumeration values that specifies the permission state (full access or no access to resources).
| Exception | Condition |
|---|---|
| ArgumentException | The state parameter is not a valid value of PermissionState. |
.NET Framework
Available since 1.1
Available since 1.1
Show: