System.Net.NetworkInformation.Win32IPGlobalProperties.GetIPStatisticsEx C# (CSharp) Method

GetIPStatisticsEx() private method

private GetIPStatisticsEx ( Win32_MIB_IPSTATS &pStats, int dwFamily ) : int
pStats Win32_MIB_IPSTATS
dwFamily int
return int
		static extern int GetIPStatisticsEx (out Win32_MIB_IPSTATS pStats, int dwFamily);

Usage Example

Beispiel #1
0
        public override IPGlobalStatistics GetIPv6GlobalStatistics()
        {
            if (!System.Net.Sockets.Socket.OSSupportsIPv6)
            {
                throw new NetworkInformationException();
            }
            Win32_MIB_IPSTATS info;

            Win32IPGlobalProperties.GetIPStatisticsEx(out info, 23);
            return(new Win32IPGlobalStatistics(info));
        }