Udostępnij za pośrednictwem


SmsWapMessage Class

Definition

Represents an SMS WAP push 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.

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

Remarks

Pass the DeviceId property to SmsDevice.FromIdAsync to activate the device and retrieve additional message details.

Properties

ApplicationId

Gets the value of the X-Wap-Application-Id header of the SmsWapMessage.

BinaryBody

Gets the binary body of the blob in the SmsWapMessage.

CellularClass

Gets the cellular class of the SMS device that received the message.

ContentType

Gets the value of the Content-Type header in the SmsWapMessage. Header parameters can be found in the Headers property.

DeviceId

Gets the device information ID of the SmsDevice that receives the SmsWapMessage.

From

Gets the phone number of the sender of the SmsWapMessage.

Headers

Gets the header name-value pairs of the WAP push message.

MessageClass

Gets the message class of the SmsWapMessage.

MessageType

Gets the message type of the SmsWapMessage.

SimIccId

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

Timestamp

Gets the timestamp of the SmsWapMessage.

The Timestamp property is determined locally for a constructed message instance or from the service center timestamp of a received message.

To

Gets the recipient phone number of this SmsWapMessage.

Applies to

See also