SmsAppMessage SmsAppMessage SmsAppMessage SmsAppMessage Class

Definition

The interface for manipulating an SMS Application message. Application messages are those which cannot be characterized as any other message type.

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 : sealed class SmsAppMessage : ISmsAppMessage, ISmsMessageBasepublic sealed class SmsAppMessage : ISmsAppMessage, ISmsMessageBasePublic NotInheritable Class SmsAppMessage Implements ISmsAppMessage, ISmsMessageBase// 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

Constructors

SmsAppMessage() SmsAppMessage() SmsAppMessage() SmsAppMessage()

Constructor. Used to create an SmsAppMessage prior to sending it.

public : SmsAppMessage()public SmsAppMessage()Public Sub New()// You can use this method in JavaScript.
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

Properties

BinaryBody BinaryBody BinaryBody BinaryBody

Reads or writes the binary part of the Application message.

public : IBuffer BinaryBody { get; set; }public IBuffer BinaryBody { get; set; }Public ReadWrite Property BinaryBody As IBuffer// You can use this property in JavaScript.
Value
IBuffer IBuffer IBuffer IBuffer

Binary data part of the Application 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

Body Body Body Body

The plain text body of the message.

public : PlatForm::String Body { get; set; }public string Body { get; set; }Public ReadWrite 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

CallbackNumber CallbackNumber CallbackNumber CallbackNumber

The number to be dialed in reply to a received SMS message.

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

The number to be dialed in reply to a received SMS message. Available only for 3GPP2 messages.

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

The class of the cellular device that received 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

The class of the cellular device that received 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

DeviceId DeviceId DeviceId DeviceId

The device ID of the device that received the 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 device ID of the device that received 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

Encoding Encoding Encoding Encoding

The encoding used to send the message.

public : SmsEncoding Encoding { get; set; }public SmsEncoding Encoding { get; set; }Public ReadWrite Property Encoding As SmsEncoding// You can use this property in JavaScript.
Value
SmsEncoding SmsEncoding SmsEncoding SmsEncoding

The encoding used to send 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

From From From From

The telephone number of the sender of the 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 telephone number of the sender 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

IsDeliveryNotificationEnabled IsDeliveryNotificationEnabled IsDeliveryNotificationEnabled IsDeliveryNotificationEnabled

Indicates whether an SMS delivery status report was sent by the SMSC.

public : PlatForm::Boolean IsDeliveryNotificationEnabled { get; set; }public bool IsDeliveryNotificationEnabled { get; set; }Public ReadWrite Property IsDeliveryNotificationEnabled As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

For a received message, indicates whether an SMS delivery status report was sent by the SMSC. For a sent message, determines whether an SMS delivery status report is requested.

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

The message class of the 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

The message class 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

MessageType MessageType MessageType MessageType

The message type of the 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

The message type 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

PortNumber PortNumber PortNumber PortNumber

The port number of the message.

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

The port number 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

ProtocolId ProtocolId ProtocolId ProtocolId

The Protocol identifier for the message.

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

The Protocol identifier for the message. (3GPP2 only.)

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

RetryAttemptCount RetryAttemptCount RetryAttemptCount RetryAttemptCount

The retry attempt count for the message.

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

The retry attempt count for the message. Set the maximum number of retries for outgoing messages, or get the number of retries for a received 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

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

TeleserviceId TeleserviceId TeleserviceId TeleserviceId

The Teleservice identifier for the message.

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

The Teleservice identifier for 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

Timestamp Timestamp Timestamp Timestamp

The timestamp of the message.

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

The timestamp of the message. If the message is constructed locally, then the Timestamp value is determined locally. If the message was received from the network, the value is determined by the service center.

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

The telephone number of the recipient of this message.

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

The telephone number of the recipient 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