共用方式為


SmsDevice.FromNetworkAccountIdAsync(String) 方法

定義

為指定的行動寬頻網路帳戶識別碼建立 SmsDevice 的實例。

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)

參數

networkAccountId
String

Platform::String

winrt::hstring

用來選取要用於 SMS 裝置之對應行動寬頻裝置的行動寬頻網路帳戶識別碼

傳回

當此方法完成時,它會傳回指定之行動寬頻網路帳戶識別碼的 SmsDevice

屬性

Windows 需求

應用程式功能
cellularMessaging sms

適用於