ChatMessageStore.MessageChanged 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.
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();
}