Share via


ChatMessageChangedEventArgs.GetDeferral Method

Definition

The message changed event handler that an application registers with the message store receives a deferral object in the event parameters. The GetDeferral method registers a change deferral and allows an application to take action related to the change before the message store completes the change.

public:
 virtual ChatMessageChangedDeferral ^ GetDeferral() = GetDeferral;
ChatMessageChangedDeferral GetDeferral();
public ChatMessageChangedDeferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As ChatMessageChangedDeferral

Returns

Gets a deferral for the MessageChanged event.

Windows requirements

App capabilities
chat chatSystem smsSend

Remarks

The chat application receives a ChatMessageChangedDeferral class object when requested by GetDeferral. Deferrals are only available if the application has a change event handler added to the MessageChanged event of the ChatMessageStore class. The ChatMessageChangedDeferral class received in the parameters for the event handler is retained for later use to notify the message store that actions related to the changer are complete.

Applies to