Compartir a través de


SmsDevice.GetDefaultAsync Método

Definición

Crea una instancia de un objeto SmsDevice asociado al dispositivo SMS predeterminado. Dado que el dispositivo puede estar ocupado, la operación se ejecuta de forma asincrónica. El objeto de operación asincrónica devuelve inmediatamente.

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)

Devoluciones

Referencia a un objeto IAsyncOperation(SmsDevice) que admite la recuperación asincrónica de objetos SmsDevice .

Atributos

Requisitos de Windows

Características de aplicaciones
cellularMessaging sms

Se aplica a