NetworkOperatorTetheringManager.CreateFromNetworkAccountId(String) 方法

定义

使用为移动宽带设备提供的网络帐户 ID 为特定网络帐户创建 NetworkOperatorTetheringManager 实例。

网络帐户是用户在插入 SIM 卡) 时 (配置的设备上可用的移动运营商帐户之一。 可以通过访问 MobileBroadbandAccount.AvailableNetworkAccountIds 属性来检索设备上可用的网络帐户 ID 列表。

public:
 static NetworkOperatorTetheringManager ^ CreateFromNetworkAccountId(Platform::String ^ networkAccountId);
 static NetworkOperatorTetheringManager CreateFromNetworkAccountId(winrt::hstring const& networkAccountId);
public static NetworkOperatorTetheringManager CreateFromNetworkAccountId(string networkAccountId);
function createFromNetworkAccountId(networkAccountId)
Public Shared Function CreateFromNetworkAccountId (networkAccountId As String) As NetworkOperatorTetheringManager

参数

networkAccountId
String

Platform::String

winrt::hstring

网络帐户 ID。

返回

NetworkOperatorTetheringManager 对象。

Windows 要求

应用功能
wiFiControl

注解

始终在使用 CreateFromNetworkAccountId 创建网络之前调用 GetTetheringCapability,以首先确认系统能够创建网络。

适用于