EventLogPermissionAttribute.MachineName Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the name of the computer on which events might be read.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

member MachineName : string with get, set

Property Value

Type: System.String

The name of the computer on which events might be read. The default is ".".

Exception Condition
ArgumentException

The computer name is invalid.

.NET Framework
Available since 1.1
Return to top
Show: