Messenger.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.Mvvm.v23.2.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
Declaration
public virtual 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 was used to identify a specific message when subscribing to it via the Register method. 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 |
---|
TMessage |
Remarks
See Messenger to learn more.
Implements
See Also