Udostępnij za pośrednictwem


MessagingCenter.Send Method

Definition

Overloads

Send<TSender,TArgs>(TSender, String, TArgs)

Sends a named message with the specified arguments.

Send<TSender>(TSender, String)

Sends a named message that has no arguments.

Send<TSender,TArgs>(TSender, String, TArgs)

Sends a named message with the specified arguments.

public static void Send<TSender,TArgs> (TSender sender, string message, TArgs args) where TSender : class;
static member Send : 'Sender * string * 'Args -> unit (requires 'Sender : null)

Type Parameters

TSender

The type of object that sends the message.

TArgs

The type of the objects that are used as message arguments for the message.

Parameters

sender
TSender

The instance that is sending the message. Typically, this is specified with the this keyword used within the sending object.

message
System.String

The message that will be sent to objects that are listening for the message from instances of type TSender.

args
TArgs

The arguments that will be passed to the listener's callback.

Implements

Applies to

Send<TSender>(TSender, String)

Sends a named message that has no arguments.

public static void Send<TSender> (TSender sender, string message) where TSender : class;
static member Send : 'Sender * string -> unit (requires 'Sender : null)

Type Parameters

TSender

The type of object that sends the message.

Parameters

sender
TSender

The instance that is sending the message. Typically, this is specified with the this keyword used within the sending object.

message
System.String

The message that will be sent to objects that are listening for the message from instances of type TSender.

Implements

Applies to