IPGlobalProperties IPGlobalProperties IPGlobalProperties IPGlobalProperties Class

Definition

Provides information about the network connectivity of the local computer.

public ref class IPGlobalProperties abstract
public abstract class IPGlobalProperties
type IPGlobalProperties = class
Public MustInherit Class IPGlobalProperties
Inheritance
IPGlobalPropertiesIPGlobalPropertiesIPGlobalPropertiesIPGlobalProperties

Examples

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 );
}
public static 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);   
}
Public Shared Sub ShowInboundIPStatistics() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim ipstat As IPGlobalStatistics = 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)

End Sub 'ShowInboundIPStatistics

Remarks

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.

Constructors

IPGlobalProperties() IPGlobalProperties() IPGlobalProperties() IPGlobalProperties()

Initializes a new instance of the IPGlobalProperties class.

Properties

DhcpScopeName DhcpScopeName DhcpScopeName DhcpScopeName

Gets the Dynamic Host Configuration Protocol (DHCP) scope name.

DomainName DomainName DomainName DomainName

Gets the domain in which the local computer is registered.

HostName HostName HostName HostName

Gets the host name for the local computer.

IsWinsProxy IsWinsProxy IsWinsProxy IsWinsProxy

Gets a Boolean value that specifies whether the local computer is acting as a Windows Internet Name Service (WINS) proxy.

NodeType NodeType NodeType NodeType

Gets the Network Basic Input/Output System (NetBIOS) node type of the local computer.

Methods

BeginGetUnicastAddresses(AsyncCallback, Object) BeginGetUnicastAddresses(AsyncCallback, Object) BeginGetUnicastAddresses(AsyncCallback, Object) BeginGetUnicastAddresses(AsyncCallback, Object)

Begins an asynchronous request to retrieve the stable unicast IP address table on the local computer.

EndGetUnicastAddresses(IAsyncResult) EndGetUnicastAddresses(IAsyncResult) EndGetUnicastAddresses(IAsyncResult) EndGetUnicastAddresses(IAsyncResult)

Ends a pending asynchronous request to retrieve the stable unicast IP address table on the local computer.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetActiveTcpConnections() GetActiveTcpConnections() GetActiveTcpConnections() GetActiveTcpConnections()

Returns information about the Internet Protocol version 4 (IPv4) and IPv6 Transmission Control Protocol (TCP) connections on the local computer.

GetActiveTcpListeners() GetActiveTcpListeners() GetActiveTcpListeners() GetActiveTcpListeners()

Returns endpoint information about the Internet Protocol version 4 (IPv4) and IPv6 Transmission Control Protocol (TCP) listeners on the local computer.

GetActiveUdpListeners() GetActiveUdpListeners() GetActiveUdpListeners() GetActiveUdpListeners()

Returns information about the Internet Protocol version 4 (IPv4) and IPv6 User Datagram Protocol (UDP) listeners on the local computer.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetIcmpV4Statistics() GetIcmpV4Statistics() GetIcmpV4Statistics() GetIcmpV4Statistics()

Provides Internet Control Message Protocol (ICMP) version 4 statistical data for the local computer.

GetIcmpV6Statistics() GetIcmpV6Statistics() GetIcmpV6Statistics() GetIcmpV6Statistics()

Provides Internet Control Message Protocol (ICMP) version 6 statistical data for the local computer.

GetIPGlobalProperties() GetIPGlobalProperties() GetIPGlobalProperties() GetIPGlobalProperties()

Gets an object that provides information about the local computer's network connectivity and traffic statistics.

GetIPv4GlobalStatistics() GetIPv4GlobalStatistics() GetIPv4GlobalStatistics() GetIPv4GlobalStatistics()

Provides Internet Protocol version 4 (IPv4) statistical data for the local computer.

GetIPv6GlobalStatistics() GetIPv6GlobalStatistics() GetIPv6GlobalStatistics() GetIPv6GlobalStatistics()

Provides Internet Protocol version 6 (IPv6) statistical data for the local computer.

GetTcpIPv4Statistics() GetTcpIPv4Statistics() GetTcpIPv4Statistics() GetTcpIPv4Statistics()

Provides Transmission Control Protocol/Internet Protocol version 4 (TCP/IPv4) statistical data for the local computer.

GetTcpIPv6Statistics() GetTcpIPv6Statistics() GetTcpIPv6Statistics() GetTcpIPv6Statistics()

Provides Transmission Control Protocol/Internet Protocol version 6 (TCP/IPv6) statistical data for the local computer.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetUdpIPv4Statistics() GetUdpIPv4Statistics() GetUdpIPv4Statistics() GetUdpIPv4Statistics()

Provides User Datagram Protocol/Internet Protocol version 4 (UDP/IPv4) statistical data for the local computer.

GetUdpIPv6Statistics() GetUdpIPv6Statistics() GetUdpIPv6Statistics() GetUdpIPv6Statistics()

Provides User Datagram Protocol/Internet Protocol version 6 (UDP/IPv6) statistical data for the local computer.

GetUnicastAddresses() GetUnicastAddresses() GetUnicastAddresses() GetUnicastAddresses()

Retrieves the stable unicast IP address table on the local computer.

GetUnicastAddressesAsync() GetUnicastAddressesAsync() GetUnicastAddressesAsync() GetUnicastAddressesAsync()

Retrieves the stable unicast IP address table on the local computer as an asynchronous operation.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to