System.Diagnostics.EventSourceCreationData.MachineName Property

Gets or sets the name of the computer on which to register the event source.

Syntax

public string MachineName { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The EventSourceCreationData.MachineName value cannot be an empty string. If the machine name is not explicitly set, it defaults to the local computer (".").

When registering a source on a remote computer, you must have administrative rights on that computer to write the registry values with sufficient permissions.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0