ServiceControllerPermissionAttribute.ServiceName 屬性

定義

取得或設定用來識別系統服務的簡短名稱。

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

屬性值

服務的名稱。

例外狀況

ServiceName 屬性的語法無效。

適用於