SmsDevice.CalculateLength(SmsTextMessage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
virtual SmsEncodedLength CalculateLength(SmsTextMessage ^ message) = CalculateLength;
/// [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.
Implements
- Attributes
Windows requirements
App capabilities |
cellularMessaging
sms
|