Condividi tramite


NetworkOperatorTetheringManager.CreateFromNetworkAccountId(String) Metodo

Definizione

Crea un'istanza di NetworkOperatorTetheringManager per un account di rete specifico usando l'ID account di rete fornito per il dispositivo mobile broadband.

Un account di rete è uno degli account dell'operatore di telefonia mobile disponibile nel dispositivo (configurato quando l'utente inserisce una SIM). È possibile recuperare un elenco degli ID degli account di rete disponibili in un dispositivo accedendo alla proprietà MobileBroadbandAccount.AvailableNetworkAccountIds .

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

Parametri

networkAccountId
String

Platform::String

winrt::hstring

ID dell'account di rete.

Restituisce

Oggetto NetworkOperatorTetheringManager .

Requisiti Windows

Funzionalità dell'app
wiFiControl

Commenti

Chiamare sempre GetTetheringCapability prima della creazione della rete di tethering usando CreateFromNetworkAccountId per verificare prima che il sistema sia in grado di creare una rete di tethering.

Si applica a