IPGlobalProperties Class
Provides information about the network connectivity of the local computer.
Assembly: System (in System.dll)
The IPGlobalProperties type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DhcpScopeName | Gets the Dynamic Host Configuration Protocol (DHCP) scope name. |
![]() | DomainName | Gets the domain in which the local computer is registered. |
![]() | HostName | Gets the host name for the local computer. |
![]() | IsWinsProxy | Gets a Boolean value that specifies whether the local computer is acting as a Windows Internet Name Service (WINS) proxy. |
![]() | NodeType | Gets the Network Basic Input/Output System (NetBIOS) node type of the local computer. |
| Name | Description | |
|---|---|---|
![]() | BeginGetUnicastAddresses | Begins an asynchronous request to retrieve the stable unicast IP address table on the local computer. |
![]() | EndGetUnicastAddresses | Ends a pending asynchronous request to retrieve the stable unicast IP address table on the local computer. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetActiveTcpConnections | Returns information about the Internet Protocol version 4 (IPv4) and IPv6 Transmission Control Protocol (TCP) connections on the local computer. |
![]() | GetActiveTcpListeners | Returns endpoint information about the Internet Protocol version 4 (IPv4) and IPv6 Transmission Control Protocol (TCP) listeners on the local computer. |
![]() | GetActiveUdpListeners | Returns information about the Internet Protocol version 4 (IPv4) and IPv6 User Datagram Protocol (UDP) listeners on the local computer. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetIcmpV4Statistics | Provides Internet Control Message Protocol (ICMP) version 4 statistical data for the local computer. |
![]() | GetIcmpV6Statistics | Provides Internet Control Message Protocol (ICMP) version 6 statistical data for the local computer. |
![]() ![]() | GetIPGlobalProperties | Gets an object that provides information about the local computer's network connectivity and traffic statistics. |
![]() | GetIPv4GlobalStatistics | Provides Internet Protocol version 4 (IPv4) statistical data for the local computer. |
![]() | GetIPv6GlobalStatistics | Provides Internet Protocol version 6 (IPv6) statistical data for the local computer. |
![]() | GetTcpIPv4Statistics | Provides Transmission Control Protocol/Internet Protocol version 4 (TCP/IPv4) statistical data for the local computer. |
![]() | GetTcpIPv6Statistics | Provides Transmission Control Protocol/Internet Protocol version 6 (TCP/IPv6) statistical data for the local computer. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetUdpIPv4Statistics | Provides User Datagram Protocol/Internet Protocol version 4 (UDP/IPv4) statistical data for the local computer. |
![]() | GetUdpIPv6Statistics | Provides User Datagram Protocol/Internet Protocol version 6 (UDP/IPv6) statistical data for the local computer. |
![]() | GetUnicastAddresses | Retrieves the stable unicast IP address table on the local computer. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class provides configuration and statistical information about the local computer's network interfaces and network connections.
The information provided by this class is similar to that provided by the Internet Protocol Helper API functions. For information about the Internet Protocol Helper, see the documentation in the MSDN Library.
The following code example displays information about the local computer using an instance of this class.
void ShowInboundIPStatistics() { IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties(); IPGlobalStatistics ^ ipstat = properties->GetIPv4GlobalStatistics(); Console::WriteLine( " Inbound Packet Data:" ); Console::WriteLine( " Received ............................ : {0}", ipstat->ReceivedPackets ); Console::WriteLine( " Forwarded ........................... : {0}", ipstat->ReceivedPacketsForwarded ); Console::WriteLine( " Delivered ........................... : {0}", ipstat->ReceivedPacketsDelivered ); Console::WriteLine( " Discarded ........................... : {0}", ipstat->ReceivedPacketsDiscarded ); }
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
