IMobileServiceEventManager.Subscribe<T>(Action<T>) 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.
Subscribes to event notifications.
public IDisposable Subscribe<T> (Action<T> next) where T : class, Microsoft.WindowsAzure.MobileServices.Eventing.IMobileServiceEvent;
abstract member Subscribe : Action<'T (requires 'T : null and 'T :> Microsoft.WindowsAzure.MobileServices.Eventing.IMobileServiceEvent)> -> IDisposable (requires 'T : null and 'T :> Microsoft.WindowsAzure.MobileServices.Eventing.IMobileServiceEvent)
Public Function Subscribe(Of T As {Class, IMobileServiceEvent}) (next As Action(Of T)) As IDisposable
Type Parameters
- T
The base type of event to filter notifications by.
Parameters
- next
- Action<T>
The delegate to be invoked to handle events.
Returns
An IDisposable instance representing the subscription.