WiFiOnDemandHotspotNetworkProperties.RemainingBatteryPercent 属性

定义

注意

一些信息与预发行产品相关,相应产品在商业发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。

重要

此 API 将受到即将于 2024 年秋季进行的操作系统行为更改的影响。 有关详细信息,请参阅 更改 api 行为的 Wi-Fi 访问和位置

获取或设置一个可选的 (可为 null) 值,该值指示热点网络的剩余电池百分比 (介于 0 到 100 之间的整数或 null) 。

注意

如果要在 UWP 应用中使用此 API 并将应用发布到 Microsoft Store,则需要请求特殊批准才能使用 自定义功能Microsoft.onDemandHotspotControl_8wekyb3d8bbwe (按需网络功能) 。 有关详细信息,请参阅 自定义功能

按需网络功能将仅提供给在支持网络连接的硬件设备和 Windows 电脑之间构建端到端 Wi-Fi 热点方案的应用开发人员。

public:
 property IReference<unsigned int> ^ RemainingBatteryPercent { IReference<unsigned int> ^ get(); void set(IReference<unsigned int> ^ value); };
IReference<uint32_t> RemainingBatteryPercent();

void RemainingBatteryPercent(IReference<uint32_t> value);
public System.Nullable<uint> RemainingBatteryPercent { get; set; }
var iReference = wiFiOnDemandHotspotNetworkProperties.remainingBatteryPercent;
wiFiOnDemandHotspotNetworkProperties.remainingBatteryPercent = iReference;
Public Property RemainingBatteryPercent As Nullable(Of UInteger)

属性值

IReference<UInt32>

Nullable<UInt32>

Windows.Foundation.IReference

IReference<uint32_t>

可选的 (可为 null) 值,该值指示热点网络的剩余电池百分比 (介于 0 到 100 之间的整数或 null) 。

Windows 要求

应用功能
onDemandHotspotControl

适用于