IMessagingCenter.Subscribe 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
Subscribe<TSender,TArgs>(Object, String, Action<TSender,TArgs>, TSender) | |
Subscribe<TSender>(Object, String, Action<TSender>, TSender) |
Subscribe<TSender,TArgs>(Object, String, Action<TSender,TArgs>, TSender)
- Source:
- MessagingCenter.cs
- Source:
- MessagingCenter.cs
public void Subscribe<TSender,TArgs> (object subscriber, string message, Action<TSender,TArgs> callback, TSender source = default) where TSender : class;
abstract member Subscribe : obj * string * Action<'Sender, 'Args (requires 'Sender : null)> * 'Sender -> unit (requires 'Sender : null)
Public Sub Subscribe(Of TSender As Class, TArgs As Class) (subscriber As Object, message As String, callback As Action(Of TSender, TArgs), Optional source As TSender = Nothing)
Type Parameters
- TSender
- TArgs
Parameters
- subscriber
- Object
- message
- String
- callback
- Action<TSender,TArgs>
- source
- TSender
Applies to
Subscribe<TSender>(Object, String, Action<TSender>, TSender)
- Source:
- MessagingCenter.cs
- Source:
- MessagingCenter.cs
public void Subscribe<TSender> (object subscriber, string message, Action<TSender> callback, TSender source = default) where TSender : class;
abstract member Subscribe : obj * string * Action<'Sender (requires 'Sender : null)> * 'Sender -> unit (requires 'Sender : null)
Public Sub Subscribe(Of TSender As Class) (subscriber As Object, message As String, callback As Action(Of TSender), Optional source As TSender = Nothing)
Type Parameters
- TSender
Parameters
- subscriber
- Object
- message
- String
- callback
- Action<TSender>
- source
- TSender