SmsDevice.SendMessageAsync(ISmsMessage) 方法

定義

使用 SMS 裝置以非同步方式傳送訊息。 方法是非同步,因為傳送作業可能不會立即發生。 訊息工作物件會立即傳回。

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

參數

message
ISmsMessage

ISmsMessage物件的參考。 訊息可以是文字或二進位格式。

傳回

訊息工作物件。

實作

屬性

Windows 需求

應用程式功能
cellularMessaging sms

適用於