SetIPConnectionMetric不会更改网络度量标准值 [英] SetIPConnectionMetric does not change the network metric value

查看:188
本文介绍了SetIPConnectionMetric不会更改网络度量标准值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


您好,

Hi,

我正在尝试更改WIFI NIC的网络指标值:Intel 7260。

I am trying to change the network metric value of my WIFI NIC: Intel 7260.

根据MSDN,可以使用"SetIPConnectionMetric"进行C#。来自"Win32_NetworkAdapterConfiguration"

According to MSDN, doing that with C# is possible using "SetIPConnectionMetric" from "Win32_NetworkAdapterConfiguration"

当我运行正确的代码时,我只能在重新启动后看到更改。但是,当使用netsh拍摄等效命令行时,新指标立即可用。

When I run the proper code i can see the changes only after doing restart. However, when shooting the equivalent command line with netsh, the new metric is available instantly.

它只是一个GUI错误(我没有看到更改)或为了更改指标要使用C#应用你需要添加重启吗?

Is it just a GUI bug (that I dont see the changes) or in order for the metric change to be applied using C# you need to add restart ?

提前Thx

推荐答案


此方法的返回值表示是否需要重新启动
,但未指定重启需要的标准。
There is return value of this method indicates whether reboot is required, but the criteria for need of reboot is not specified.


这篇关于SetIPConnectionMetric不会更改网络度量标准值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆