ISmsDevice.CalculateLength(SmsTextMessage) 方法

定义

估计指定文本消息的传输消息长度。 对于想要指示网络上发送多少条消息以携带完整消息文本的客户端,此估算值可能很有用。

public:
 SmsEncodedLength CalculateLength(SmsTextMessage ^ 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)]
SmsEncodedLength CalculateLength(SmsTextMessage 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")]
SmsEncodedLength CalculateLength(SmsTextMessage 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 SmsEncodedLength CalculateLength(SmsTextMessage 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 SmsEncodedLength CalculateLength(SmsTextMessage message);
function calculateLength(message)
Public Function CalculateLength (message As SmsTextMessage) As SmsEncodedLength

参数

message
SmsTextMessage

对要度量的短信的引用。

返回

对用长度信息填充的 SmsEncodedLength 结构的引用。

属性

Windows 要求

应用功能
cellularMessaging sms

适用于