SmsMessageRegistration.MessageReceived 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
收到符合已註冊訊息篩選準則中設定之篩選準則的訊息時,事件會發出訊號。
// 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
|