ServiceControllerPermissionAttribute.MachineName 属性

定义

获取或设置服务所驻留的计算机的名称。Gets or sets the name of the computer on which the service resides.

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

属性值

String

计算机的名称,该计算机正在运行与 ServiceController 关联的服务。The name of the computer that is running the service associated with the ServiceController.

例外

MachineName 语法无效。The MachineName syntax is invalid.

适用于