HttpServerUtility.MachineName Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le nom d'ordinateur du serveur.
public:
property System::String ^ MachineName { System::String ^ get(); };
public string MachineName { get; }
member this.MachineName : string
Public ReadOnly Property MachineName As String
Valeur de propriété
Nom de l'ordinateur local.
Exceptions
Le nom de l’ordinateur est introuvable.
Exemples
L’exemple suivant stocke le nom de l’ordinateur du serveur sous forme de variable de chaîne.
String ThisMachine;
ThisMachine = Server.MachineName;
Dim ThisMachine As String
ThisMachine = Server.MachineName