SmsStatusMessage SmsStatusMessage SmsStatusMessage SmsStatusMessage Class

Definition

Encapsulates an SMS status message.

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.

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 : sealed class SmsStatusMessage : ISmsMessageBase, ISmsStatusMessagepublic sealed class SmsStatusMessage : ISmsMessageBase, ISmsStatusMessagePublic NotInheritable Class SmsStatusMessage Implements ISmsMessageBase, ISmsStatusMessage// You can use this class in JavaScript.
Attributes
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)
Capabilities
cellularMessaging

Properties

Body Body Body Body

Gets the body of the status message.

public : PlatForm::String Body { get; }public string Body { get; }Public ReadOnly Property Body As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The plain text body of the message.

Additional features and 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)
Capabilities
cellularMessaging

CellularClass CellularClass CellularClass CellularClass

Gets the cellular class of the message.

public : CellularClass CellularClass { get; }public CellularClass CellularClass { get; }Public ReadOnly Property CellularClass As CellularClass// You can use this property in JavaScript.
Value
CellularClass CellularClass CellularClass CellularClass

An enumeration value describing the message's cellular class.

Additional features and 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)
Capabilities
cellularMessaging

DeviceId DeviceId DeviceId DeviceId

Gets the device identifier associated with the status message.

public : PlatForm::String DeviceId { get; }public string DeviceId { get; }Public ReadOnly Property DeviceId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The unique device identifier, as a string.

Additional features and 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)
Capabilities
cellularMessaging

DischargeTime DischargeTime DischargeTime DischargeTime

The discharge time of the status message.

public : DateTime DischargeTime { get; }public DateTimeOffset DischargeTime { get; }Public ReadOnly Property DischargeTime As DateTimeOffset// You can use this property in JavaScript.
Value
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The discharge time.

Additional features and 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)
Capabilities
cellularMessaging

From From From From

Gets the phone number that sent the status message.

public : PlatForm::String From { get; }public string From { get; }Public ReadOnly Property From As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The sending phone number, as a string.

Additional features and 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)
Capabilities
cellularMessaging

MessageClass MessageClass MessageClass MessageClass

Gets the message class of the status message.

public : SmsMessageClass MessageClass { get; }public SmsMessageClass MessageClass { get; }Public ReadOnly Property MessageClass As SmsMessageClass// You can use this property in JavaScript.
Value
SmsMessageClass SmsMessageClass SmsMessageClass SmsMessageClass

An enumeration value giving the message class of the status message.

Additional features and 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)
Capabilities
cellularMessaging

MessageReferenceNumber MessageReferenceNumber MessageReferenceNumber MessageReferenceNumber

Gets the reference number of the status message.

public : int MessageReferenceNumber { get; }public int MessageReferenceNumber { get; }Public ReadOnly Property MessageReferenceNumber As int// You can use this property in JavaScript.
Value
int int int int

The message number.

Additional features and 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)
Capabilities
cellularMessaging

MessageType MessageType MessageType MessageType

Gets the message type of the status message.

public : SmsMessageType MessageType { get; }public SmsMessageType MessageType { get; }Public ReadOnly Property MessageType As SmsMessageType// You can use this property in JavaScript.
Value
SmsMessageType SmsMessageType SmsMessageType SmsMessageType

An enumeration value giving the message type of this message.

Additional features and 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)
Capabilities
cellularMessaging

ServiceCenterTimestamp ServiceCenterTimestamp ServiceCenterTimestamp ServiceCenterTimestamp

Gets the service center timestamp of the status message.

public : DateTime ServiceCenterTimestamp { get; }public DateTimeOffset ServiceCenterTimestamp { get; }Public ReadOnly Property ServiceCenterTimestamp As DateTimeOffset// You can use this property in JavaScript.
Value
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The service center date and time when the status message was sent.

Additional features and 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)
Capabilities
cellularMessaging

SimIccId SimIccId SimIccId SimIccId

Gets the ICCID (Integrated Circuit Card Identifier) of the SIM that received the message.

public : PlatForm::String SimIccId { get; }public string SimIccId { get; }Public ReadOnly Property SimIccId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The ICCID of the SIM.

Additional features and 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)
Capabilities
cellularMessaging

Status Status Status Status

The status code associated with this message.

public : int Status { get; }public int Status { get; }Public ReadOnly Property Status As int// You can use this property in JavaScript.
Value
int int int int

The status in this status message.

Additional features and 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)
Capabilities
cellularMessaging

To To To To

Gets the phone number the status message was sent to.

public : PlatForm::String To { get; }public string To { get; }Public ReadOnly Property To As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The phone number, as a string.

Additional features and 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)
Capabilities
cellularMessaging