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;
 }
Beispiel #2
0
        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);
Beispiel #6
0
 internal static extern uint GetIfEntry2(ref MibIfRow2 pIfRow);
Beispiel #7
0
 internal SystemIPInterfaceStatistics(long index)
 {
     ifRow = GetIfEntry2(index);
 }