ServiceController.MachineName Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera lub ustawia nazwę komputera, na którym znajduje się ta usługa.
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ść nieruchomości
Nazwa komputera, na którym jest uruchomiona usługa skojarzona z tym ServiceController wystąpieniem. Wartość domyślna to komputer lokalny (".").
- Atrybuty
Wyjątki
Składnia jest nieprawidłowa MachineName .
Uwagi
Nazwa komputera to nazwa serwera, na którym jest uruchomiona ta usługa, bez powyższych znaków ukośnika odwrotnego (\\).