MobileBroadbandModem.GetIsPassthroughEnabled(Int32) 方法

定义

检索一个值,该值指示是否为双 Sim 卡单活动设备) 为活动或非活动槽 (启用直通模式。

注意

此功能仅适用于移动运营商应用和由移动网络运营商授予特权访问权限的 UWP 应用。

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

public:
 virtual bool GetIsPassthroughEnabled(int slotindex) = GetIsPassthroughEnabled;
/// [Windows.Foundation.Metadata.Overload("GetIsPassthroughEnabledWithSlotIndex")]
bool GetIsPassthroughEnabled(int const& slotindex);
[Windows.Foundation.Metadata.Overload("GetIsPassthroughEnabledWithSlotIndex")]
public bool GetIsPassthroughEnabled(int slotindex);
function getIsPassthroughEnabled(slotindex)
Public Function GetIsPassthroughEnabled (slotindex As Integer) As Boolean

参数

slotindex
Int32

int

从 0 开始的槽索引 (要查询的槽号) 。

返回

Boolean

bool

如果启用了传递模式,则值为 true ;否则为 false

属性

Windows 要求

设备系列
Windows 11 Insider Preview (在 10.0.23504.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v15.0 中引入)
应用功能
Microsoft.eSIMManagement_8wekyb3d8bbwe

适用于