語言

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

屬性值

可能是用來讀取事件的電腦名稱。 預設是「.」。

例外狀況

電腦名稱無效。

適用於