SmsDevice2.CalculateLength | calculateLength method
[This documentation is preliminary and is subject to change.]
Estimates the transmitted message length of the specified text message. The estimate can be useful to clients that want to give an indication of how many messages will be sent on the network to carry the text of the full message.
Note This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband: Windows Store device apps.
Syntax
var smsEncodedLength = smsDevice2.calculateLength(message);
public SmsEncodedLength CalculateLength(
SmsTextMessage2 message
)
Public Function CalculateLength(
message As SmsTextMessage2
) As SmsEncodedLength
public:
SmsEncodedLength CalculateLength(
SmsTextMessage2^ message
)
Parameters
message
Type: SmsTextMessage2A reference to the SMS text message to measure.
Return value
Type: SmsEncodedLength
A reference to an SmsEncodedLength structure that is populated with the length information.
Requirements (device family)
Device family |
UAP, introduced version 1.0.0.0 |
API contract |
Windows.Foundation.UniversalApiContract, introduced version 1.0 |
Namespace |
Windows.Devices.Sms Windows::Devices::Sms [C++] |
Metadata |
Windows.Foundation.UniversalApiContract.winmd |