Skip to main content

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

Sends the specified message.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v24.1.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

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

Parameters

Name Type Description
message TMessage

The message of the TMessage type to be 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. null if you want to send regular messages (without tokens).

When sending a message, a token can be assigned to the message via the current token parameter. Only message recipients that registered the same token via the Register method are invoked when this message occurs.

Type Parameters

Name
TMessage

Remarks

See Messenger to learn more.

See Also