你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IMobileServiceEventManager.Subscribe<T>(Action<T>) 方法

定义

订阅事件通知。

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

类型参数

T

要按其筛选通知的事件的基类型。

参数

next
Action<T>

要调用以处理事件的委托。

返回

表示 IDisposable 订阅的 实例。

适用于