IPGlobalProperties.GetIPGlobalProperties Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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.