MessagingCenter.IMessagingCenter.Unsubscribe Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IMessagingCenter.Unsubscribe<TSender,TArgs>(Object, String) |
Unsubscribes the specified |
IMessagingCenter.Unsubscribe<TSender>(Object, String) |
Unsubscribes the specified |
IMessagingCenter.Unsubscribe<TSender,TArgs>(Object, String)
Unsubscribes the specified subscriber
from the specified message
.
void IMessagingCenter.Unsubscribe<TSender,TArgs> (object subscriber, string message) where TSender : class;
abstract member Xamarin.Forms.IMessagingCenter.Unsubscribe : obj * string -> unit (requires 'Sender : null)
override this.Xamarin.Forms.IMessagingCenter.Unsubscribe : obj * string -> 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
- subscriber
- System.Object
The object that is subscribing to the messages. Typically, this is specified with the this
keyword used within the subscribing 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
IMessagingCenter.Unsubscribe<TSender>(Object, String)
Unsubscribes the specified subscriber
from the specified message
.
void IMessagingCenter.Unsubscribe<TSender> (object subscriber, string message) where TSender : class;
abstract member Xamarin.Forms.IMessagingCenter.Unsubscribe : obj * string -> unit (requires 'Sender : null)
override this.Xamarin.Forms.IMessagingCenter.Unsubscribe : obj * string -> unit (requires 'Sender : null)
Type Parameters
- TSender
The type of object that sends the message.
Parameters
- subscriber
- System.Object
The object that is unsubscribing to the messages. Typically, this is specified with the this
keyword used within the subscribing object.
- message
- System.String
The message that will be sent to objects that are listening for the message from instances of type TSender
.