Export (0) Print
Expand All

EventLogPermissionAttribute.MachineName Property

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

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

'Declaration
Public Property MachineName As String

Property Value

Type: System.String
The name of the computer on which events might be read. The default is ".".

ExceptionCondition
ArgumentException

The computer name is invalid.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft