SmsDevice.GetDefaultAsync 方法

定义

创建与默认 SMS 设备关联的 SmsDevice 对象的实例。 由于设备可能正忙,因此操作以异步方式执行。 异步操作对象立即返回。

public:
 static IAsyncOperation<SmsDevice ^> ^ GetDefaultAsync();
/// [Windows.Foundation.Metadata.Deprecated("ISmsDeviceStatics 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> GetDefaultAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("ISmsDeviceStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
 static IAsyncOperation<SmsDevice> GetDefaultAsync();
[Windows.Foundation.Metadata.Deprecated("ISmsDeviceStatics 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> GetDefaultAsync();
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("ISmsDeviceStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public static IAsyncOperation<SmsDevice> GetDefaultAsync();
function getDefaultAsync()
Public Shared Function GetDefaultAsync () As IAsyncOperation(Of SmsDevice)

返回

支持异步 SmsDevice 对象检索的 IAsyncOperation (SmsDevice) 对象的引用。

属性

Windows 要求

应用功能
cellularMessaging sms

适用于