当电源插入电缆时,如何从.NET获取Windows以太网设置?
- 以太网适配器已启用。
- 以太网电缆已插入。
如果将网络设置更改为Windows设置或NetSh的DHCP/static,则与Windows Settings相比,UI将显示更改。但是Netsh和Ipconfig将显示旧设置。我的假设是连接电缆后Windows应用以太网设置的方法。
但是必须放置在连接电缆之前存储新设置的内容。 我可以从.NET访问这些新设置吗?也许它不一定是我想的?
- Ethernet adapter is enabled.
- Ethernet cable is unplugged.
If you change network settings to dhcp/static by Windows Settings or netsh than Windows Settings UI will show changes. But netsh and ipconfig will show old settings. My assumption is what Windows applies ethernet settings after cable is connected.
But must be place what stores new settings before cable is connected.
Can I access those new settings from .net? Or maybe it works not at all the way I think?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论