Bagikan melalui


SmsDevice.FromNetworkAccountIdAsync(String) Metode

Definisi

Membuat instans SmsDevice untuk ID akun jaringan Mobile Broadband yang ditentukan.

public:
 static IAsyncOperation<SmsDevice ^> ^ FromNetworkAccountIdAsync(Platform::String ^ networkAccountId);
/// [Windows.Foundation.Metadata.Deprecated("ISmsDeviceStatics2 may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<SmsDevice> FromNetworkAccountIdAsync(winrt::hstring const& networkAccountId);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("ISmsDeviceStatics2 may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
 static IAsyncOperation<SmsDevice> FromNetworkAccountIdAsync(winrt::hstring const& networkAccountId);
[Windows.Foundation.Metadata.Deprecated("ISmsDeviceStatics2 may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<SmsDevice> FromNetworkAccountIdAsync(string networkAccountId);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("ISmsDeviceStatics2 may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public static IAsyncOperation<SmsDevice> FromNetworkAccountIdAsync(string networkAccountId);
function fromNetworkAccountIdAsync(networkAccountId)
Public Shared Function FromNetworkAccountIdAsync (networkAccountId As String) As IAsyncOperation(Of SmsDevice)

Parameter

networkAccountId
String

Platform::String

winrt::hstring

ID akun jaringan Mobile Broadband yang digunakan untuk memilih perangkat broadband seluler yang sesuai yang akan digunakan untuk perangkat SMS

Mengembalikan

Ketika metode ini selesai, ia mengembalikan SmsDevice untuk ID akun jaringan Mobile Broadband yang ditentukan.

Atribut

Persyaratan Windows

Kemampuan aplikasi
cellularMessaging sms

Berlaku untuk