如何从c#中的Process Class获取IP地址? [英] How to get the IP Address from the Process Class in c#?
本文介绍了如何从c#中的Process Class获取IP地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好吗?
我正在显示我的计算机上运行的所有过程信息,例如NetLimiter。
我得到了进程名称,上传/下载速度来自我的电脑,但我没有得到进程ip加法器,因此我无法显示进程上传/下载速度。
我希望你帮助我。
祝你好运
How are you?
I'm displaying all of process information working on my computer such as NetLimiter.
I got the Process Names, Upload/Download speed incoming / out coming my computer, but I didn't get the process ip adderss, so that I can't display the process upload/download speed.
I would like you help me.
Best regards
推荐答案
查看 IP帮助程序函数 [ ^ ]。
正如评论中所建议的,进程没有IP地址。但我认为你需要的是进程ID(PID)来完成它。
Process.Id [ ^ ]属性。
你可能想看一下这个 [< a href =https://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipv4interfacestatistics.bytesreceived.aspx\"target =_ blanktitle =New Window> ^ ]还有。
-KR
As suggested in comment, Processes don't have IP address. But I think what you need is Process ID (PID) to get it done.
Process.Id[^] Property.
You might want to look at this[^] as well.
-KR
这篇关于如何从c#中的Process Class获取IP地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文