Sdílet prostřednictvím


SmsMessageRegistration.MessageReceived Event

Definition

Event signaled when a message has been received that meets the filter criteria set in a registered message filter.

// Register
event_token MessageReceived(TypedEventHandler<SmsMessageRegistration, SmsMessageReceivedTriggerDetails const&> const& handler) const;

// Revoke with event_token
void MessageReceived(event_token const* cookie) const;

// Revoke with event_revoker
SmsMessageRegistration::MessageReceived_revoker MessageReceived(auto_revoke_t, TypedEventHandler<SmsMessageRegistration, SmsMessageReceivedTriggerDetails const&> const& handler) const;
public event TypedEventHandler<SmsMessageRegistration,SmsMessageReceivedTriggerDetails> MessageReceived;
function onMessageReceived(eventArgs) { /* Your code */ }
smsMessageRegistration.addEventListener("messagereceived", onMessageReceived);
smsMessageRegistration.removeEventListener("messagereceived", onMessageReceived);
- or -
smsMessageRegistration.onmessagereceived = onMessageReceived;
Public Custom Event MessageReceived As TypedEventHandler(Of SmsMessageRegistration, SmsMessageReceivedTriggerDetails) 

Event Type

Windows requirements

App capabilities
cellularMessaging sms

Applies to