Share via


ISmsDevice.SendMessageAsync(ISmsMessage) Methode

Definition

Sendet asynchron eine Nachricht über das SMS-Gerät. Die -Methode ist asynchron, da der Sendevorgang möglicherweise nicht sofort erfolgt. Das asynchrone Vorgangsobjekt wird sofort zurückgegeben.

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)]
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

Ein Verweis auf ein SmsMessage-Objekt. Die Nachricht kann im Text- oder Binärformat vorliegen.

Gibt zurück

Ein Verweis auf ein SendSmsMessageOperation-Objekt , das das asynchrone Senden von Nachrichten unterstützt.

Attribute

Windows-Anforderungen

App-Funktionen
cellularMessaging sms

Gilt für: