Dela via


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 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 ref class SmsAppMessage sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SmsAppMessage final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class SmsAppMessage final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SmsAppMessage
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SmsAppMessage
function SmsAppMessage()
Public NotInheritable Class SmsAppMessage
Inheritance
Object Platform::Object IInspectable SmsAppMessage
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

Constructors

SmsAppMessage()

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

Properties

BinaryBody

Reads or writes the binary part of the Application message.

Body

The plain text body of the message.

CallbackNumber

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

CellularClass

The class of the cellular device that received the message.

DeviceId

The device ID of the device that received the message.

Encoding

The encoding used to send the message.

From

The telephone number of the sender of the message.

IsDeliveryNotificationEnabled

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

MessageClass

The message class of the message.

MessageType

The message type of the message.

PortNumber

The port number of the message.

ProtocolId

The Protocol identifier for the message.

RetryAttemptCount

The retry attempt count for the message.

SimIccId

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

TeleserviceId

The Teleservice identifier for the message.

Timestamp

The timestamp of the message.

To

The telephone number of the recipient of this message.

Applies to

See also