WiFiOnDemandHotspotNetworkProperties.RemainingBatteryPercent 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
注意
針對發行前產品的部分相關資訊,在產品正式發行時可能會有大幅修改。 針對此處提供的資訊,Microsoft 不做任何明示或默許的擔保。
重要
此 API 將受到即將變更的作業系統行為所影響,其計畫為 2024 年 2024 年。 如需詳細資訊,請參閱 Wi-Fi 存取和位置的 API 行為變更。
取得或設定選擇性 (可為 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)
屬性值
選擇性 (可為 Null 的) 值,指出熱點網路的剩餘電池百分比, (介於 0 到 100 之間的整數,或 null) 。
Windows 需求
應用程式功能 |
onDemandHotspotControl
|
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應