ServiceControllerPermissionAttribute.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

屬性值

正在執行與 ServiceController 相關聯服務的電腦名稱。

例外狀況

MachineName 語法無效。

適用於