ChatMessageChange.ChangeType Property
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.
Gets the type of change made to a chat message, such as created, modified, etc.
public:
property ChatMessageChangeType ChangeType { ChatMessageChangeType get(); };
ChatMessageChangeType ChangeType();
public ChatMessageChangeType ChangeType { get; }
var chatMessageChangeType = chatMessageChange.changeType;
Public ReadOnly Property ChangeType As ChatMessageChangeType
Property Value
The type of change represented by the object.
Windows requirements
App capabilities |
chat
chatSystem
smsSend
|
Remarks
An application can check the change type when deciding to accept message changes or to update its private message store. The following example checks for acceptable changes.
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
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