ServiceController.MachineName 속성

정의

이 서비스가 상주하는 컴퓨터의 이름을 가져오거나 설정합니다.

public:
 property System::String ^ MachineName { System::String ^ get(); void set(System::String ^ value); };
public:
 property System::String ^ MachineName { System::String ^ get(); };
public string MachineName { get; set; }
public string MachineName { get; }
[System.ComponentModel.Browsable(false)]
[System.ServiceProcess.ServiceProcessDescription("SPMachineName")]
public string MachineName { get; set; }
[System.ComponentModel.Browsable(false)]
[System.ServiceProcess.ServiceProcessDescription("SPMachineName")]
[System.ComponentModel.SettingsBindable(true)]
public string MachineName { get; set; }
member this.MachineName : string with get, set
member this.MachineName : string
[<System.ComponentModel.Browsable(false)>]
[<System.ServiceProcess.ServiceProcessDescription("SPMachineName")>]
member this.MachineName : string with get, set
[<System.ComponentModel.Browsable(false)>]
[<System.ServiceProcess.ServiceProcessDescription("SPMachineName")>]
[<System.ComponentModel.SettingsBindable(true)>]
member this.MachineName : string with get, set
Public Property MachineName As String
Public ReadOnly Property MachineName As String

속성 값

String

ServiceController 인스턴스와 관련된 서비스를 실행하는 컴퓨터의 이름입니다. 기본값은 로컬 컴퓨터(".")입니다.

특성

예외

MachineName 구문이 잘못된 경우

설명

컴퓨터 이름은 이전 백슬래시 문자(\\)가 없는 이 서비스를 실행하는 서버의 이름입니다.

적용 대상