private GetIPStatisticsEx ( Win32_MIB_IPSTATS &pStats, int dwFamily ) : int | ||
pStats | Win32_MIB_IPSTATS | |
dwFamily | int | |
return | int |
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)); }