ISmsBinaryMessage Interface
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.
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 available only 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.
public interface class ISmsBinaryMessage : ISmsMessage
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Sms.LegacySmsApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("SmsBinaryMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsAppMessage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
/// [Windows.Foundation.Metadata.Guid(1542776851, 15187, 19566, 182, 26, 216, 106, 99, 117, 86, 80)]
struct ISmsBinaryMessage : ISmsMessage
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Sms.LegacySmsApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1542776851, 15187, 19566, 182, 26, 216, 106, 99, 117, 86, 80)]
/// [Windows.Foundation.Metadata.Deprecated("SmsBinaryMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsAppMessage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
struct ISmsBinaryMessage : ISmsMessage
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Sms.LegacySmsApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("SmsBinaryMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsAppMessage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
[Windows.Foundation.Metadata.Guid(1542776851, 15187, 19566, 182, 26, 216, 106, 99, 117, 86, 80)]
public interface ISmsBinaryMessage : ISmsMessage
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Sms.LegacySmsApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1542776851, 15187, 19566, 182, 26, 216, 106, 99, 117, 86, 80)]
[Windows.Foundation.Metadata.Deprecated("SmsBinaryMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsAppMessage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public interface ISmsBinaryMessage : ISmsMessage
Public Interface ISmsBinaryMessage
Implements ISmsMessage
- Derived
- Attributes
- Implements
Windows requirements
Device family |
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
|
API contract |
Windows.Devices.Sms.LegacySmsApiContract (introduced in v1.0)
|
App capabilities |
cellularMessaging
sms
|
Remarks
Interface inheritance
ISmsBinaryMessage inherits ISmsMessage. Types that implement ISmsBinaryMessage also implement the interface members of ISmsMessage.
Properties
Format |
Retrieves the detected protocol description unit (PDU) format of this message. |
Id |
Retrieves an ID for the message, which can later be specified in calling message store methods in order to get or delete the message. (Inherited from ISmsMessage) |
MessageClass |
Returns the message class, as determined by the operator's message network. The two most common classes are None (normal message) or Class0 (special operator message, such as a roaming warning that must be shown immediately to the user). A typical client for end-user messages ignores Class0 messages. (Inherited from ISmsMessage) |
Methods
GetData() |
Returns the raw buffer of the message in binary protocol description unit (PDU) format as a byte array. |
SetData(Byte[]) |
Specifies the raw binary payload of the SMS message. It should be formatted according to the protocol description unit (PDU) standard. |