ISmsDevice.SendMessageAsync(ISmsMessage) 方法

定义

使用 SMS 设备异步发送消息。 方法是异步的,因为发送操作可能不会瞬间发生。 异步操作对象将立即返回。

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

参数

message
ISmsMessage

对 SmsMessage 对象的引用。 消息可以是文本或二进制格式。

返回

对支持异步消息发送的 SendSmsMessageOperation 对象的引用。

属性

Windows 要求

应用功能
cellularMessaging sms

适用于