Bagikan melalui


SmsDevice.GetDefaultAsync Metode

Definisi

Membuat instans objek SmsDevice yang terkait dengan perangkat SMS default. Karena perangkat mungkin sibuk, operasi dijalankan secara asinkron. Objek operasi asinkron segera kembali.

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)

Mengembalikan

Referensi ke objek IAsyncOperation (SmsDevice) yang mendukung pengambilan objek SmsDevice asinkron.

Atribut

Persyaratan Windows

Kemampuan aplikasi
cellularMessaging sms

Berlaku untuk