語言

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 法無效。

適用於