Partager via


SmsMessageRegistration.MessageReceived Événement

Définition

Événement signalé lorsqu’un message qui répond aux critères de filtre définis dans un filtre de message inscrit a été reçu.

// 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) 

Type d'événement

Configuration requise pour Windows

Fonctionnalités de l’application
cellularMessaging sms

S’applique à