コード例 #1
0
 private void GetIfEntry(long index)
 {
     if (index != 0L)
     {
         this.ifRow.dwIndex = (uint)index;
         uint ifEntry = UnsafeNetInfoNativeMethods.GetIfEntry(ref this.ifRow);
         if (ifEntry != 0)
         {
             throw new NetworkInformationException((int)ifEntry);
         }
     }
 }