SmsDevice.FromNetworkAccountIdAsync(String) Method

Definition

Creates an instance of SmsDevice for the specified Mobile Broadband network account ID.

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)

Parameters

networkAccountId
String

Platform::String

winrt::hstring

The Mobile Broadband network account ID to use to select the corresponding mobile broadband device to use for the SMS device

Returns

When this method completes, it returns the SmsDevice for the specified Mobile Broadband network account ID.

Attributes

Windows requirements

App capabilities
cellularMessaging sms

Applies to