Udostępnij za pośrednictwem


SmsMessageReceivedTriggerDetails Class

Definition

Contains event details for the event raised when an SMS message is received.

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

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

You access an SmsMessageReceivedTriggerDetails object through the function that you implement to handle the SmsMessageRegistration.MessageReceived event.

Your filtering code is required to acknowledge each filtered message by calling Drop or Accept before it can process the next message.

Properties

AppMessage

When MessageType is App, the message details for the message.

BroadcastMessage

When MessageType is Broadcast, the message details for the message.

MessageType

The SmsMessageType of the received message.

StatusMessage

When MessageType is Status, the message details for the message.

TextMessage

When MessageType is Text, the message details for the message.

VoicemailMessage

When MessageType is Voicemail, the message details for the message.

WapMessage

When MessageType is Wap, the message details for the message.

Methods

Accept()

Delivers the filtered message to the messaging app.

Drop()

Drops the filtered message, so that it is not passed on to the messaging app.

Applies to