using System; using System.IO; namespace System.Net.NetworkInformation { /// Provides information about the network connectivity of the local computer. // Token: 0x02000162 RID: 354 public abstract class IPGlobalProperties { /// Gets an object that provides information about the local computer's network connectivity and traffic statistics. /// A object that contains information about the local computer. /// /// /// // Token: 0x06000BDE RID: 3038 RVA: 0x0002438C File Offset: 0x0002258C public static IPGlobalProperties GetIPGlobalProperties() { PlatformID platform = Environment.OSVersion.Platform; if (platform != PlatformID.Unix) { return new Win32IPGlobalProperties(); } if (Directory.Exists("/proc")) { MibIPGlobalProperties mibIPGlobalProperties = new MibIPGlobalProperties("/proc"); if (File.Exists(mibIPGlobalProperties.StatisticsFile)) { return mibIPGlobalProperties; } } if (Directory.Exists("/usr/compat/linux/proc")) { MibIPGlobalProperties mibIPGlobalProperties = new MibIPGlobalProperties("/usr/compat/linux/proc"); if (File.Exists(mibIPGlobalProperties.StatisticsFile)) { return mibIPGlobalProperties; } } throw new NotSupportedException("This platform is not supported"); } /// Returns information about the Internet Protocol version 4 (IPV4) Transmission Control Protocol (TCP) connections on the local computer. /// A array that contains objects that describe the active TCP connections, or an empty array if no active TCP connections are detected. /// The Win32 function GetTcpTable failed. // Token: 0x06000BDF RID: 3039 public abstract TcpConnectionInformation[] GetActiveTcpConnections(); /// Returns endpoint information about the Internet Protocol version 4 (IPV4) Transmission Control Protocol (TCP) listeners on the local computer. /// A array that contains objects that describe the active TCP listeners, or an empty array, if no active TCP listeners are detected. /// The Win32 function GetTcpTable failed. // Token: 0x06000BE0 RID: 3040 public abstract IPEndPoint[] GetActiveTcpListeners(); /// Returns information about the Internet Protocol version 4 (IPv4) User Datagram Protocol (UDP) listeners on the local computer. /// An array that contains objects that describe the UDP listeners, or an empty array if no UDP listeners are detected. /// The call to the Win32 function GetUdpTable failed. // Token: 0x06000BE1 RID: 3041 public abstract IPEndPoint[] GetActiveUdpListeners(); /// Provides Internet Control Message Protocol (ICMP) version 4 statistical data for the local computer. /// An object that provides ICMP version 4 traffic statistics for the local computer. /// The Win32 function GetIcmpStatistics failed. // Token: 0x06000BE2 RID: 3042 public abstract IcmpV4Statistics GetIcmpV4Statistics(); /// Provides Internet Control Message Protocol (ICMP) version 6 statistical data for the local computer. /// An object that provides ICMP version 6 traffic statistics for the local computer. /// The Win32 function GetIcmpStatisticsEx failed. /// The local computer's operating system is not Windows XP or later. // Token: 0x06000BE3 RID: 3043 public abstract IcmpV6Statistics GetIcmpV6Statistics(); /// Provides Internet Protocol version 4 (IPv4) statistical data for the local computer. /// An object that provides IPv4 traffic statistics for the local computer. /// The call to the Win32 function GetIpStatistics failed. // Token: 0x06000BE4 RID: 3044 public abstract IPGlobalStatistics GetIPv4GlobalStatistics(); /// Provides Internet Protocol version 6 (IPv6) statistical data for the local computer. /// An object that provides IPv6 traffic statistics for the local computer. /// The call to the Win32 function GetIpStatistics failed. /// The local computer is not running an operating system that supports IPv6. // Token: 0x06000BE5 RID: 3045 public abstract IPGlobalStatistics GetIPv6GlobalStatistics(); /// Provides Transmission Control Protocol/Internet Protocol version 4 (TCP/IPv4) statistical data for the local computer. /// A object that provides TCP/IPv4 traffic statistics for the local computer. /// The call to the Win32 function GetTcpStatistics failed. // Token: 0x06000BE6 RID: 3046 public abstract TcpStatistics GetTcpIPv4Statistics(); /// Provides Transmission Control Protocol/Internet Protocol version 6 (TCP/IPv6) statistical data for the local computer. /// A object that provides TCP/IPv6 traffic statistics for the local computer. /// The call to the Win32 function GetTcpStatistics failed. /// The local computer is not running an operating system that supports IPv6. // Token: 0x06000BE7 RID: 3047 public abstract TcpStatistics GetTcpIPv6Statistics(); /// Provides User Datagram Protocol/Internet Protocol version 4 (UDP/IPv4) statistical data for the local computer. /// A object that provides UDP/IPv4 traffic statistics for the local computer. /// The call to the Win32 function GetUdpStatistics failed. // Token: 0x06000BE8 RID: 3048 public abstract UdpStatistics GetUdpIPv4Statistics(); /// Provides User Datagram Protocol/Internet Protocol version 6 (UDP/IPv6) statistical data for the local computer. /// A object that provides UDP/IPv6 traffic statistics for the local computer. /// The call to the Win32 function GetUdpStatistics failed. /// The local computer is not running an operating system that supports IPv6. // Token: 0x06000BE9 RID: 3049 public abstract UdpStatistics GetUdpIPv6Statistics(); /// Gets the Dynamic Host Configuration Protocol (DHCP) scope name. /// A instance that contains the computer's DHCP scope name. /// A Win32 function call failed. // Token: 0x170002FE RID: 766 // (get) Token: 0x06000BEA RID: 3050 public abstract string DhcpScopeName { get; } /// Gets the domain in which the local computer is registered. /// A instance that contains the computer's domain name. If the computer does not belong to a domain, returns . /// A Win32 function call failed. // Token: 0x170002FF RID: 767 // (get) Token: 0x06000BEB RID: 3051 public abstract string DomainName { get; } /// Gets the host name for the local computer. /// A instance that contains the computer's NetBIOS name. /// A Win32 function call failed. // Token: 0x17000300 RID: 768 // (get) Token: 0x06000BEC RID: 3052 public abstract string HostName { get; } /// Gets a value that specifies whether the local computer is acting as a Windows Internet Name Service (WINS) proxy. /// true if the local computer is a WINS proxy; otherwise, false. /// A Win32 function call failed. // Token: 0x17000301 RID: 769 // (get) Token: 0x06000BED RID: 3053 public abstract bool IsWinsProxy { get; } /// Gets the Network Basic Input/Output System (NetBIOS) node type of the local computer. /// A value. /// A Win32 function call failed. // Token: 0x17000302 RID: 770 // (get) Token: 0x06000BEE RID: 3054 public abstract NetBiosNodeType NodeType { get; } } }