Condividi tramite


SmsDevice.GetDefaultAsync Metodo

Definizione

Crea un'istanza di un oggetto SmsDevice associato al dispositivo SMS predefinito. Poiché il dispositivo potrebbe essere occupato, l'operazione viene eseguita in modo asincrono. L'oggetto operazione asincrona restituisce immediatamente.

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)

Restituisce

Riferimento a un oggetto IAsyncOperation(SmsDevice) che supporta il recupero dell'oggetto SmsDevice asincrono.

Attributi

Requisiti Windows

Funzionalità dell'app
cellularMessaging sms

Si applica a