perfmon sayacı ipconfig farklı NIC isimler karşılaştırın kullanıyor/tüm ve (/ bu ipconfig dan tümü) aşağıda görebileceğiniz gibi C# sistem çağrısıC# performans sayacı ve nic adı
Ethernet adapter HHHH: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : HP NC364T PCIe Quad Port Gigabit Server Adapter #3 Physical Address. . . . . . . . . : 00-1F-29-0D-26-59 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv4 Address. . . . . . . . . . . : 166.49.47.10(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.240 Default Gateway . . . . . . . . . : NetBIOS over Tcpip. . . . . . . . : Disabled
using System.Net.NetworkInformation;
NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces();
HP NC364T PCIe Quad Port Gigabit Server Adapter #3
'u alırım. Tam olarak ipconfig ile aynı. BUT perfmon HP NC364T PCIe Quad Port Gigabit Server Adapter _3
(hash yerine alt çizgi) kullanmaktadır. Perfone ne ile aynı tam sayaç adını almak için farklı bir çağrı kullanmak zorunda mıyım? Eğer öyleyse, nedir?
WMI kullanarak "" HP NC364T PCIe Dört Bağlantı Noktalı Gigabit Sunucu Bağdaştırıcısı # 3 "ü alırsınız – GETah