SmsStatusMessage Class
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.
Encapsulates an SMS status message.
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.
To access a received status message, create a background task that is triggered by the SmsMessageReceived event. In that task, first use SmsMessageReceivedTriggerDetails.MessageType to determine that the message is a status message, then use the SmsMessageReceivedTriggerDetails.StatusMessage property to access the instance of this class.
public ref class SmsStatusMessage sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SmsStatusMessage final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SmsStatusMessage
Public NotInheritable Class SmsStatusMessage
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
App capabilities |
cellularMessaging
sms
|
Properties
Body |
Gets the body of the status message. |
CellularClass |
Gets the cellular class of the message. |
DeviceId |
Gets the device identifier associated with the status message. |
DischargeTime |
The discharge time of the status message. |
From |
Gets the phone number that sent the status message. |
MessageClass |
Gets the message class of the status message. |
MessageReferenceNumber |
Gets the reference number of the status message. |
MessageType |
Gets the message type of the status message. |
ServiceCenterTimestamp |
Gets the service center timestamp of the status message. |
SimIccId |
Gets the ICCID (Integrated Circuit Card Identifier) of the SIM that received the message. |
Status |
The status code associated with this message. |
To |
Gets the phone number the status message was sent to. |