Share via


ChatMessageChangeTracker.GetChangeReader Method

Definition

Returns a ChatMessageChangeReader class object which provides a collection of message revisions from the message store.

public:
 virtual ChatMessageChangeReader ^ GetChangeReader() = GetChangeReader;
ChatMessageChangeReader GetChangeReader();
public ChatMessageChangeReader GetChangeReader();
function getChangeReader()
Public Function GetChangeReader () As ChatMessageChangeReader

Returns

The change reader associated with the change tracker.

Windows requirements

App capabilities
chat blockedChatMessages chatSystem smsSend

Remarks

The following example uses the message change reader to find the message revision total:

async int GetMessageRevisionCount(ChatMesssage messageStore)
{
    ChatMessageChangeTracker tracker = messageStore.ChangeTracker;
    IReadOnlyList<ChatMessageChange> changeList = await tracker.GetChangeReader().ReadBatchAsync();

    return changeList.Count;
}

Applies to