MobileBroadbandModem.SetIsPassthroughEnabledAsync 方法

定義

多載

SetIsPassthroughEnabledAsync(Boolean)

以非同步方式啟用或停用傳遞模式。

SetIsPassthroughEnabledAsync(Boolean, Int32)

針對雙 Sim 單一作用中) 裝置,以非同步方式啟用或停用作用中或非使用中位置的傳遞模式 (。

注意

這項功能僅適用于行動電信業者提供特殊許可權存取權的電信業者應用程式和 UWP 應用程式。

如果您想要使用此 API 並將您的應用程式發佈至 Microsoft Store,則必須要求特殊核准,才能使用自訂功能 Microsoft.eSIMManagement_8wekyb3d8bbwe。 如需詳細資訊,請參閱 自訂功能

SetIsPassthroughEnabledAsync(Boolean)

以非同步方式啟用或停用傳遞模式。

public:
 virtual IAsyncOperation<MobileBroadbandModemStatus> ^ SetIsPassthroughEnabledAsync(bool value) = SetIsPassthroughEnabledAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<MobileBroadbandModemStatus> SetIsPassthroughEnabledAsync(bool const& value);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<MobileBroadbandModemStatus> SetIsPassthroughEnabledAsync(bool value);
function setIsPassthroughEnabledAsync(value)
Public Function SetIsPassthroughEnabledAsync (value As Boolean) As IAsyncOperation(Of MobileBroadbandModemStatus)

參數

value
Boolean

bool

如果應該啟用傳遞,則為 True;否則為 false。

傳回

非同步作業,會在完成時傳回 MobileBroadbandModemStatus 值。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)
應用程式功能
cellularDeviceControl cellularDeviceIdentity

備註

啟用傳遞模式可讓主機直接與 SIM 卡通訊, (主機與 SIM 卡之間的通訊) 。 例如,若要升級韌體。 迷你埠介面卡不會傳送任何應用程式通訊協定資料單位 (APTU) 到卡片,而且不會隨時干擾主機與 SIM 卡之間的通訊。

適用於

SetIsPassthroughEnabledAsync(Boolean, Int32)

針對雙 Sim 單一作用中) 裝置,以非同步方式啟用或停用作用中或非使用中位置的傳遞模式 (。

注意

這項功能僅適用于行動電信業者提供特殊許可權存取權的電信業者應用程式和 UWP 應用程式。

如果您想要使用此 API 並將您的應用程式發佈至 Microsoft Store,則必須要求特殊核准,才能使用自訂功能 Microsoft.eSIMManagement_8wekyb3d8bbwe。 如需詳細資訊,請參閱 自訂功能

public:
 virtual IAsyncOperation<MobileBroadbandModemStatus> ^ SetIsPassthroughEnabledAsync(bool value, int slotindex) = SetIsPassthroughEnabledAsync;
/// [Windows.Foundation.Metadata.Overload("SetIsPassthroughEnabledWithSlotIndexAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<MobileBroadbandModemStatus> SetIsPassthroughEnabledAsync(bool const& value, int const& slotindex);
[Windows.Foundation.Metadata.Overload("SetIsPassthroughEnabledWithSlotIndexAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<MobileBroadbandModemStatus> SetIsPassthroughEnabledAsync(bool value, int slotindex);
function setIsPassthroughEnabledAsync(value, slotindex)
Public Function SetIsPassthroughEnabledAsync (value As Boolean, slotindex As Integer) As IAsyncOperation(Of 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 卡之間的通訊。

適用於