Bagikan melalui


SmsDevice.SendMessageAsync(ISmsMessage) Metode

Definisi

Secara asinkron mengirim pesan menggunakan perangkat SMS. Metode ini asinkron karena operasi pengiriman mungkin tidak terjadi secara instan. Objek operasi pesan segera dikembalikan.

public:
 virtual SendSmsMessageOperation ^ SendMessageAsync(ISmsMessage ^ message) = SendMessageAsync;
/// [Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
SendSmsMessageOperation SendMessageAsync(ISmsMessage const& message);
/// [Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
SendSmsMessageOperation SendMessageAsync(ISmsMessage const& message);
[Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
public SendSmsMessageOperation SendMessageAsync(ISmsMessage message);
[Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public SendSmsMessageOperation SendMessageAsync(ISmsMessage message);
function sendMessageAsync(message)
Public Function SendMessageAsync (message As ISmsMessage) As SendSmsMessageOperation

Parameter

message
ISmsMessage

Referensi ke objek ISmsMessage . Pesan dapat dalam format teks atau biner.

Mengembalikan

Objek operasi pesan.

Penerapan

Atribut

Persyaratan Windows

Kemampuan aplikasi
cellularMessaging sms

Berlaku untuk