ServiceManager.Unsubscribe 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Unsubscribe(Type, SubscribeServiceCallback) |
移除服务类型的订阅。 |
Unsubscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) |
移除服务类型的订阅。 |
Unsubscribe(Type, SubscribeServiceCallback)
移除服务类型的订阅。
public:
abstract void Unsubscribe(Type ^ serviceType, System::Activities::Presentation::SubscribeServiceCallback ^ callback);
public abstract void Unsubscribe (Type serviceType, System.Activities.Presentation.SubscribeServiceCallback callback);
abstract member Unsubscribe : Type * System.Activities.Presentation.SubscribeServiceCallback -> unit
Public MustOverride Sub Unsubscribe (serviceType As Type, callback As SubscribeServiceCallback)
参数
- serviceType
- Type
要从中移除订阅的服务的类型。
- callback
- SubscribeServiceCallback
要从订阅中移除的回调对象。
例外
serviceType
或 callback
为 null
。
适用于
Unsubscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)
移除服务类型的订阅。
public:
generic <typename TServiceType>
void Unsubscribe(System::Activities::Presentation::SubscribeServiceCallback<TServiceType> ^ callback);
public void Unsubscribe<TServiceType> (System.Activities.Presentation.SubscribeServiceCallback<TServiceType> callback);
member this.Unsubscribe : System.Activities.Presentation.SubscribeServiceCallback<'ServiceType> -> unit
Public Sub Unsubscribe(Of TServiceType) (callback As SubscribeServiceCallback(Of TServiceType))
类型参数
- TServiceType
要从中移除订阅的服务的类型。
参数
要从订阅中移除的回调对象。
例外
callback
为 null
。