SmsMessageRegistration.MessageReceived Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|