ISmsBinaryMessage
ISmsBinaryMessage
ISmsBinaryMessage
ISmsBinaryMessage
Interface
Definition
This interface provides access to the raw binary format of an SMS message. The message is stored in the industry standard protocol description unit (PDU) format (see the SMS specification GSM 03.40).
Note
This functionality is only available to mobile operator apps and Windows Store app given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband: device apps.
public : interface ISmsBinaryMessagepublic interface ISmsBinaryMessagePublic Interface ISmsBinaryMessage// You can use this interface in JavaScript.
- Inheritance
-
ISmsBinaryMessageISmsBinaryMessageISmsBinaryMessageISmsBinaryMessage
- Attributes
| Device family |
Windows Desktop Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Devices.Sms.LegacySmsApiContract (introduced v1)
|
| Capabilities |
sms
cellularMessaging
|
Inherited Members
Inherited properties
Remarks
Interface inheritance
ISmsBinaryMessage inherits ISmsMessage. Types that implement ISmsBinaryMessage also implement the interface members of ISmsMessage.
Properties
Format Format Format Format
Retrieves the detected protocol description unit (PDU) format of this message.
public : SmsDataFormat Format { get; set; }public SmsDataFormat Format { get; set; }Public ReadWrite Property Format As SmsDataFormat// You can use this property in JavaScript.
An enumerated value describing the SMS data format.
| Device family |
Windows Desktop Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Devices.Sms.LegacySmsApiContract (introduced v1)
|
| Capabilities |
sms
cellularMessaging
|
Methods
GetData() GetData() GetData() GetData()
Returns the raw buffer of the message in binary protocol description unit (PDU) format as a byte array.
public : byte[] GetData()public byte[] GetData()Public Function GetData() As byte[]// You can use this method in JavaScript.
A byte array representing message data. If there is no message data, the returned array is empty.
| Device family |
Windows Desktop Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Devices.Sms.LegacySmsApiContract (introduced v1)
|
| Capabilities |
sms
cellularMessaging
|
SetData(Byte[]) SetData(Byte[]) SetData(Byte[]) SetData(Byte[])
Specifies the raw binary payload of the SMS message. It should be formatted according to the protocol description unit (PDU) standard.
public : void SetData(Byte[] value)public void SetData(Byte[] value)Public Function SetData(value As Byte[]) As void// You can use this method in JavaScript.
- value
- Byte[] Byte[] Byte[] Byte[]
A byte array representing message data, formatted according to the protocol description unit (PDU) standard.
| Device family |
Windows Desktop Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Devices.Sms.LegacySmsApiContract (introduced v1)
|
| Capabilities |
sms
cellularMessaging
|