次の方法で共有


SmsMessageRegistration.MessageReceived イベント

定義

登録されたメッセージ フィルターで設定されたフィルター条件を満たすメッセージが受信されたときに通知されるイベント。

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

イベントの種類

Windows の要件

アプリの機能
cellularMessaging sms

適用対象