ServiceController.MachineName Właściwość
Definicja
Pobiera lub ustawia nazwę komputera, na którym znajduje się ta usługa.Gets or sets the name of the computer on which this service resides.
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
Wartość właściwości
Nazwa komputera, na którym jest uruchomiona usługa skojarzona z tym ServiceController wystąpieniem.The name of the computer that is running the service associated with this ServiceController instance. Wartość domyślna to komputer lokalny (".").The default is the local computer (".").
- Atrybuty
Wyjątki
MachineNameSkładnia jest nieprawidłowa.The MachineName syntax is invalid.
Uwagi
Nazwa komputera to nazwa serwera, na którym działa ta usługa, bez poprzedzających ukośników odwrotnych ( \ \ ).The computer name is the name of the server that is running this service, without the preceding backslash characters (\\).