SmsEncodedLength SmsEncodedLength SmsEncodedLength SmsEncodedLength SmsEncodedLength Struct


This structure represents information about the length of an SmsTextMessage object when it is encoded as a PDU.


This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband: device apps.

public : struct SmsEncodedLength
struct winrt::Windows::Devices::Sms::SmsEncodedLength
public struct SmsEncodedLength
Public Structure SmsEncodedLength
var smsEncodedLength = {

   byteCountLastSegment: /* Your value */,

   bytesPerSegment: /* Your value */,

   characterCountLastSegment: /* Your value */,

   charactersPerSegment: /* Your value */,

   segmentCount: /* Your value */


Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
sms cellularMessaging


ByteCountLastSegment ByteCountLastSegment ByteCountLastSegment ByteCountLastSegment ByteCountLastSegment

The number of bytes in the last segment of the encoded message.

BytesPerSegment BytesPerSegment BytesPerSegment BytesPerSegment BytesPerSegment

The number of bytes in each segment of the message.

CharacterCountLastSegment CharacterCountLastSegment CharacterCountLastSegment CharacterCountLastSegment CharacterCountLastSegment

The number of characters in the last segment of the encoded message.

CharactersPerSegment CharactersPerSegment CharactersPerSegment CharactersPerSegment CharactersPerSegment

The estimated number of characters that can fit in one segment of the message.

SegmentCount SegmentCount SegmentCount SegmentCount SegmentCount

The number of segments needed to encode the message.