Freigeben über


MessagingCenter.IMessagingCenter.Send Method

Definition

Overloads

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

Sends a message and arguments to objects that are listening for them on the type that is specified by TSender.

IMessagingCenter.Send<TSender>(TSender, String)

Sends the named parameterless message to objects that are listening for it on the type that is specified by TSender.

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

Sends a message and arguments to objects that are listening for them on the type that is specified by TSender.

void IMessagingCenter.Send<TSender,TArgs> (TSender sender, string message, TArgs args) where TSender : class;
abstract member Xamarin.Forms.IMessagingCenter.Send : 'Sender * string * 'Args -> unit (requires 'Sender : null)
override this.Xamarin.Forms.IMessagingCenter.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

IMessagingCenter.Send<TSender>(TSender, String)

Sends the named parameterless message to objects that are listening for it on the type that is specified by TSender.

void IMessagingCenter.Send<TSender> (TSender sender, string message) where TSender : class;
abstract member Xamarin.Forms.IMessagingCenter.Send : 'Sender * string -> unit (requires 'Sender : null)
override this.Xamarin.Forms.IMessagingCenter.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