ChatMessageChangeTracker.GetChangeReader 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.
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;
}