Share via


ISmsDevice.SendMessageAsync(ISmsMessage) Method

Definition

Asynchronously sends a message using the SMS device. The method is asynchronous because the send operation might not occur instantaneously. The asynchronous operation object is returned immediately.

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

Parameters

message
ISmsMessage

A reference to an SmsMessage object. The message can be in text or binary format.

Returns

A reference to an SendSmsMessageOperation object that supports asynchronous message sending.

Attributes

Windows requirements

App capabilities
cellularMessaging sms

Applies to