internal static MibIfRow2 GetIfEntry2(long index) { MibIfRow2 ifRow = new MibIfRow2(); if (index == 0 ) { return ifRow; } ifRow.interfaceIndex = (uint)index; uint result = UnsafeNetInfoNativeMethods.GetIfEntry2(ref ifRow); if (result != IpHelperErrors.Success) { throw new NetworkInformationException((int)result); } return ifRow; }
internal static MibIfRow2 GetIfEntry2(long index) { MibIfRow2 ifRow = new MibIfRow2(); if (index == 0) { return(ifRow); } ifRow.interfaceIndex = (uint)index; uint result = UnsafeNetInfoNativeMethods.GetIfEntry2(ref ifRow); if (result != IpHelperErrors.Success) { throw new NetworkInformationException((int)result); } return(ifRow); }
internal SystemIPv4InterfaceStatistics(long index){ ifRow = SystemIPInterfaceStatistics.GetIfEntry2(index); }
internal extern static uint GetIfEntry2(ref MibIfRow2 pIfRow);
internal static partial uint GetIfEntry2(ref MibIfRow2 pIfRow);
internal static extern uint GetIfEntry2(ref MibIfRow2 pIfRow);
internal SystemIPInterfaceStatistics(long index) { ifRow = GetIfEntry2(index); }