Skip to main content

IMessenger.Send<TMessage>(TMessage, Type, Object) Method

Sends the specified message.

Namespace: DevExpress.Mvvm

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

NuGet Package: DevExpress.WinUI

Declaration

void Send<TMessage>(
    TMessage message,
    Type messageTargetType,
    object token
)

Parameters

Name Type Description
message TMessage

The message that is sent.

messageTargetType Type

Only recipients of the messageTargetType or inherited type will receive the current message. Set this parameter to null to send a message without an addressee type.

token Object

An object (marker) that can be used to identify a specific message. Pass null if you want to send regular messages (without tokens). When you send a message, you can use the current token parameter to assign a token to the message. When the message occurs, only message recipients that registered the same token are invoked.

Type Parameters

Name Description
TMessage

The message type.

See Also