你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
IMobileServiceEventManager.Subscribe<T>(Action<T>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
订阅事件通知。
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 订阅的 实例。