ChatMessageChangeTracker.Reset Method
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.
Resets change tracking for the messages in the message store. The first revision begins with the next message change.
public:
virtual void Reset() = Reset;
void Reset();
public void Reset();
function reset()
Public Sub Reset ()
Windows requirements
App capabilities |
chat
blockedChatMessages
chatSystem
smsSend
|
Remarks
The following example resets change tracking when the revision change type indicates ChatMessageChangeType.ChangeTrackingLost:
switch (messageChange.ChangeType)
{
case ChatMessageChangeType.MessageCreated:
case ChatMessageChangeType.MessageDeleted:
case ChatMessageChangeType.MessageModified:
messageStore.ChangeTracker.GetChangeReader.AcceptChanges();
break;
case ChatMessageChangeType.ChangeTrackingLost:
messageStore.ChangeTracker.Reset();
break;
default:
break
}