MessagingCenter.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 static void Subscribe<TSender,TArgs> (object subscriber, string message, Action<TSender,TArgs> callback, TSender source = default) where TSender : class;
static member Subscribe : obj * string * Action<'Sender, 'Args (requires 'Sender : null)> * 'Sender -> unit (requires 'Sender : null)
Public Shared 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 static void Subscribe<TSender> (object subscriber, string message, Action<TSender> callback, TSender source = default) where TSender : class;
static member Subscribe : obj * string * Action<'Sender (requires 'Sender : null)> * 'Sender -> unit (requires 'Sender : null)
Public Shared 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
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.