Share via


ChatMessageChange.ChangeType Property

Definition

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