ServiceManager.Unsubscribe 方法

定义

重载

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

要从订阅中移除的回调对象。

例外

serviceTypecallbacknull

适用于

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
SubscribeServiceCallback<TServiceType>

要从订阅中移除的回调对象。

例外

callbacknull

适用于