Beispiel #1
0
        internal SystemIcmpV4Statistics()
        {
            uint icmpStatistics = UnsafeNetInfoNativeMethods.GetIcmpStatistics(out this.stats);

            if (icmpStatistics != 0)
            {
                throw new NetworkInformationException((int)icmpStatistics);
            }
        }
        internal SystemIcmpV4Statistics()
        {
            uint result = UnsafeNetInfoNativeMethods.GetIcmpStatistics(out stats);

            if (result != IpHelperErrors.Success)
            {
                throw new NetworkInformationException((int)result);
            }
        }