internal SystemIcmpV6Statistics() { uint result = UnsafeNetInfoNativeMethods.GetIcmpStatisticsEx(out stats, AddressFamily.InterNetworkV6); if (result != IpHelperErrors.Success) { throw new NetworkInformationException((int)result); } }
internal SystemIcmpV6Statistics() { if (!ComNetOS.IsPostWin2K) { throw new PlatformNotSupportedException(SR.GetString("WinXPRequired")); } uint icmpStatisticsEx = UnsafeNetInfoNativeMethods.GetIcmpStatisticsEx(out this.stats, AddressFamily.InterNetworkV6); if (icmpStatisticsEx != 0) { throw new NetworkInformationException((int)icmpStatisticsEx); } }