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;
}
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for