Share via


ChatMessageChangeTracker.Reset Method

Definition

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
}

Applies to