Share via


ChatMessageStore.MessageChanged Event

Definition

An event that occurs when a message in the message store is changed.

// Register
event_token MessageChanged(TypedEventHandler<ChatMessageStore, ChatMessageChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ChatMessageStore::MessageChanged_revoker MessageChanged(auto_revoke_t, TypedEventHandler<ChatMessageStore, ChatMessageChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ChatMessageStore,ChatMessageChangedEventArgs> MessageChanged;
function onMessageChanged(eventArgs) { /* Your code */ }
chatMessageStore.addEventListener("messagechanged", onMessageChanged);
chatMessageStore.removeEventListener("messagechanged", onMessageChanged);
- or -
chatMessageStore.onmessagechanged = onMessageChanged;
Public Custom Event MessageChanged As TypedEventHandler(Of ChatMessageStore, ChatMessageChangedEventArgs) 

Event Type

Windows requirements

App capabilities
chat blockedChatMessages chatSystem smsSend

Remarks

The following simple example demonstrates how to declare and enable change tracking for message changes.

void ChatMessageStore_MessageChanged(ChatMessageStore store, ChatMessageChangedEventArgs changeArgs)
{
    // Act on the event…
}

void SetStoreProperties(ChatMessageStore store)
{
    store.MessageChanged += ChatMessageStore_MessageChanged;
    store.ChangeTracker.Enable();
}

Applies to