MobileBroadbandModem.SetIsPassthroughEnabled(Boolean, Int32) 方法

定义

为双 Sim 卡单活动设备) 启用或禁用活动或非活动槽的直通模式 (。

注意

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

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

public:
 virtual MobileBroadbandModemStatus SetIsPassthroughEnabled(bool value, int slotindex) = SetIsPassthroughEnabled;
/// [Windows.Foundation.Metadata.Overload("SetIsPassthroughEnabledWithSlotIndex")]
MobileBroadbandModemStatus SetIsPassthroughEnabled(bool const& value, int const& slotindex);
[Windows.Foundation.Metadata.Overload("SetIsPassthroughEnabledWithSlotIndex")]
public MobileBroadbandModemStatus SetIsPassthroughEnabled(bool value, int slotindex);
function setIsPassthroughEnabled(value, slotindex)
Public Function SetIsPassthroughEnabled (value As Boolean, slotindex As Integer) As MobileBroadbandModemStatus

参数

value
Boolean

bool

一个 值 true ,用于启用直通模式; false 若要禁用它,则为 。

slotindex
Int32

int

从 0 开始的槽索引 (槽号) 启用或禁用传递模式。

返回

完成时 为 MobileBroadbandModemStatus 值。

属性

Windows 要求

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

注解

启用直通模式允许主机直接与 SIM 卡通信, (主机与 SIM 卡之间的通信是 直通) 。 例如,升级固件。 微型端口适配器不会将任何应用程序协议数据单元 (APTU) 发送到卡,并且不会随时干扰主机和 SIM 之间的通信。

适用于