Compartilhar via


ManagementScopePath.ServerName Propriedade

Definição

Obtém o nome do servidor.

public:
 property System::String ^ ServerName { System::String ^ get(); };
public string ServerName { get; }
member this.ServerName : string
Public ReadOnly Property ServerName As String

Valor da propriedade

O nome do servidor.

Exemplos

O exemplo a seguir envia ManagementScopePath detalhes para o ouvinte de rastreamento.

void TrcMSP(ManagementScopePath msp) {

    Trace.WriteLine("ApplicationPath = " + msp.ApplicationPath);
    Trace.WriteLine("Port = " + msp.Port.ToString());
    if (msp.FrameworkVersion != null &&
        !string.IsNullOrEmpty(msp.FrameworkVersion.Version.ToString()))
        Trace.WriteLine("FrameworkVersion = " + msp.FrameworkVersion.Version);
    Trace.WriteLine("ServerName = " + msp.ServerName);
    Trace.WriteLine("ServerReference = " + msp.ServerReference);
    Trace.WriteLine("SiteName = " + msp.SiteName);
} 

Aplica-se a