IPGlobalProperties.GetIPGlobalProperties Methode

Definitie

Hiermee haalt u een object op dat informatie biedt over de netwerkconnectiviteit en verkeersstatistieken van de lokale computer.

public:
 static System::Net::NetworkInformation::IPGlobalProperties ^ GetIPGlobalProperties();
public static System.Net.NetworkInformation.IPGlobalProperties GetIPGlobalProperties();
static member GetIPGlobalProperties : unit -> System.Net.NetworkInformation.IPGlobalProperties
Public Shared Function GetIPGlobalProperties () As IPGlobalProperties

Retouren

Een IPGlobalProperties object met informatie over de lokale computer.

Voorbeelden

In het volgende codevoorbeeld wordt informatie over de lokale computer weergegeven.

IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
Console.WriteLine("Computer name: {0}", properties.HostName);
Console.WriteLine("Domain name:   {0}", properties.DomainName);
Console.WriteLine("Node type:     {0:f}", properties.NodeType);
Console.WriteLine("DHCP scope:    {0}", properties.DhcpScopeName);
Console.WriteLine("WINS proxy?    {0}", properties.IsWinsProxy);

Opmerkingen

Het object dat door deze methode wordt geretourneerd, is een door het systeem opgegeven type dat is afgeleid van de IPGlobalProperties klasse.

Van toepassing op