Jaa


ISmsDevice.CalculateLength(SmsTextMessage) Method

Definition

Estimates the transmitted message length of the specified text message. The estimate can be useful to clients who want to give an indication of how many messages will be sent on the network to carry the text of the full message.

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

Parameters

message
SmsTextMessage

A reference to the SMS text message to measure.

Returns

A reference to an SmsEncodedLength structure that is populated with the length information.

Attributes

Windows requirements

App capabilities
cellularMessaging sms

Applies to