Edit

Share via


EventLogPermission Constructors

Definition

Initializes a new instance of the EventLogPermission class.

Overloads

EventLogPermission()

Initializes a new instance of the EventLogPermission class.

EventLogPermission(EventLogPermissionEntry[])

Initializes a new instance of the EventLogPermission class with the specified permission entries.

EventLogPermission(PermissionState)

Initializes a new instance of the EventLogPermission class with the specified permission state.

EventLogPermission(EventLogPermissionAccess, String)

Initializes a new instance of the EventLogPermission class with the specified access levels and the name of the computer to use.

EventLogPermission()

Source:
EventLogPermission.cs
Source:
EventLogPermission.cs
Source:
EventLogPermission.cs
Source:
EventLogPermission.cs

Initializes a new instance of the EventLogPermission class.

public:
 EventLogPermission();
public EventLogPermission ();
Public Sub New ()

Applies to

EventLogPermission(EventLogPermissionEntry[])

Source:
EventLogPermission.cs
Source:
EventLogPermission.cs
Source:
EventLogPermission.cs
Source:
EventLogPermission.cs

Initializes a new instance of the EventLogPermission class with the specified permission entries.

public:
 EventLogPermission(cli::array <System::Diagnostics::EventLogPermissionEntry ^> ^ permissionAccessEntries);
public EventLogPermission (System.Diagnostics.EventLogPermissionEntry[] permissionAccessEntries);
new System.Diagnostics.EventLogPermission : System.Diagnostics.EventLogPermissionEntry[] -> System.Diagnostics.EventLogPermission
Public Sub New (permissionAccessEntries As EventLogPermissionEntry())

Parameters

permissionAccessEntries
EventLogPermissionEntry[]

An array of objects that represent permission entries. The PermissionEntries property is set to this value.

Exceptions

permissionAccessEntries is null.

Applies to

EventLogPermission(PermissionState)

Source:
EventLogPermission.cs
Source:
EventLogPermission.cs
Source:
EventLogPermission.cs
Source:
EventLogPermission.cs

Initializes a new instance of the EventLogPermission class with the specified permission state.

public:
 EventLogPermission(System::Security::Permissions::PermissionState state);
public EventLogPermission (System.Security.Permissions.PermissionState state);
new System.Diagnostics.EventLogPermission : System.Security.Permissions.PermissionState -> System.Diagnostics.EventLogPermission
Public Sub New (state As PermissionState)

Parameters

state
PermissionState

One of the enumeration values that specifies the permission state (full access or no access to resources).

Exceptions

The state parameter is not a valid value of PermissionState.

See also

Applies to

EventLogPermission(EventLogPermissionAccess, String)

Source:
EventLogPermission.cs
Source:
EventLogPermission.cs
Source:
EventLogPermission.cs
Source:
EventLogPermission.cs

Initializes a new instance of the EventLogPermission class with the specified access levels and the name of the computer to use.

public:
 EventLogPermission(System::Diagnostics::EventLogPermissionAccess permissionAccess, System::String ^ machineName);
public EventLogPermission (System.Diagnostics.EventLogPermissionAccess permissionAccess, string machineName);
new System.Diagnostics.EventLogPermission : System.Diagnostics.EventLogPermissionAccess * string -> System.Diagnostics.EventLogPermission
Public Sub New (permissionAccess As EventLogPermissionAccess, machineName As String)

Parameters

permissionAccess
EventLogPermissionAccess

One of the enumeration values that specifies an access level.

machineName
String

The name of the computer on which to read or write events.

Applies to