Skip to main content
A newer version of this page is available. .

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

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

Namespace: DevExpress.Mvvm

Assembly: DevExpress.WinUI.Mvvm.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

void Unregister<TMessage>(
    object recipient,
    object token,
    Action<TMessage> action
)

Parameters

Name Type Description
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 subscribe to it with the Register method. Pass null to unsubscribe from the message regardless of the token assigned to it.

action Action<TMessage>

An action to be unsubscribed from receiving messages.

Type Parameters

Name Description
TMessage

The message type.

See Also