ESim.DiscoverAsync 方法

定義

多載

DiscoverAsync()

使用預設 SMDS 位址,以非同步方式執行 eSIM 設定檔探索作業。

注意

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

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

DiscoverAsync(String, String)

針對提供的 RSP 伺服器位址和相符識別碼,以非同步方式執行 eSIM 設定檔探索作業。

注意

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

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

DiscoverAsync()

使用預設 SMDS 位址,以非同步方式執行 eSIM 設定檔探索作業。

注意

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

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

public:
 virtual IAsyncOperation<ESimDiscoverResult ^> ^ DiscoverAsync() = DiscoverAsync;
/// [Windows.Foundation.Metadata.Overload("DiscoverAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ESimDiscoverResult> DiscoverAsync();
[Windows.Foundation.Metadata.Overload("DiscoverAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ESimDiscoverResult> DiscoverAsync();
function discoverAsync()
Public Function DiscoverAsync () As IAsyncOperation(Of ESimDiscoverResult)

傳回

代表作業結果的 ESimDiscoverResult 物件。

屬性

Windows 需求

裝置系列
Windows 10, version 1903 (已於 10.0.18362.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v8.0 引進)
應用程式功能
Microsoft.eSIMManagement_8wekyb3d8bbwe

範例

如需程式碼範例,請參閱 探索

備註

如需詳細資訊,請參閱 探索

適用於

DiscoverAsync(String, String)

針對提供的 RSP 伺服器位址和相符識別碼,以非同步方式執行 eSIM 設定檔探索作業。

注意

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

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

public:
 virtual IAsyncOperation<ESimDiscoverResult ^> ^ DiscoverAsync(Platform::String ^ serverAddress, Platform::String ^ matchingId) = DiscoverAsync;
/// [Windows.Foundation.Metadata.Overload("DiscoverWithServerAddressAndMatchingIdAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ESimDiscoverResult> DiscoverAsync(winrt::hstring const& serverAddress, winrt::hstring const& matchingId);
[Windows.Foundation.Metadata.Overload("DiscoverWithServerAddressAndMatchingIdAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ESimDiscoverResult> DiscoverAsync(string serverAddress, string matchingId);
function discoverAsync(serverAddress, matchingId)
Public Function DiscoverAsync (serverAddress As String, matchingId As String) As IAsyncOperation(Of ESimDiscoverResult)

參數

serverAddress
String

Platform::String

winrt::hstring

包含 RSP 伺服器位址的字串。 如果 serverAddress 是空的,API 會使用預設 SMDS 位址。

matchingId
String

Platform::String

winrt::hstring

包含相符識別碼的字串。

傳回

代表作業結果的 ESimDiscoverResult 物件。

屬性

Windows 需求

裝置系列
Windows 10, version 1903 (已於 10.0.18362.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v8.0 引進)
應用程式功能
Microsoft.eSIMManagement_8wekyb3d8bbwe

範例

如需程式碼範例,請參閱 探索

備註

如需詳細資訊,請參閱 探索

適用於