Share via


NetworkOperatorTetheringManager.CreateFromNetworkAccountId(String) Method

Definition

Creates an instance of NetworkOperatorTetheringManager for a specific network account using the provided network account ID for the mobile broadband device.

A network account is one of the mobile operator accounts available on the device (configured when the user inserts a SIM). You can retrieve a list of the IDs of the network accounts available on a device by accessing the MobileBroadbandAccount.AvailableNetworkAccountIds property.

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

Parameters

networkAccountId
String

Platform::String

winrt::hstring

The network account ID.

Returns

A NetworkOperatorTetheringManager object.

Windows requirements

App capabilities
wiFiControl

Remarks

Always call GetTetheringCapability prior to the creation of the tethering network using CreateFromNetworkAccountId to first confirm that the system is capable of creating a tethering network.

Applies to