Skip to main content

MessengerExtensions.Unregister<TMessage>(IMessenger, Object, Object) Method

Unsubscribes the specified object’s action from being invoked when a specific message occurs.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.WinUI.Mvvm.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public static void Unregister<TMessage>(
    this IMessenger messenger,
    object recipient,
    object token
)

Parameters

Name Type Description
messenger IMessenger

A messanger instance.

recipient Object

An object containing an action to be unsubscribed from receiving the messages of TMessage type.

token Object

An object (marker) that identifies a specific message when you call the Register method to subscribe to it. Pass null to unsubscribe from the message regardless of the token assigned to it.

Type Parameters

Name Description
TMessage

The message type.

See Also