语言

EventLogPermissionAttribute.MachineName 属性

定义

获取或设置可读取事件的计算机的名称。

public:
 property System::String ^ MachineName { System::String ^ get(); void set(System::String ^ value); };
public string MachineName { get; set; }
member this.MachineName : string with get, set
Public Property MachineName As String

属性值

读取事件的计算机的名称。 默认值为“.”。

例外

计算机名称无效。

适用于