Edit

Share via


ServiceManager.Unsubscribe Method

Definition

Overloads

Unsubscribe(Type, SubscribeServiceCallback)

Removes a subscription for a service type.

Unsubscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

Removes a subscription for a service type.

Unsubscribe(Type, SubscribeServiceCallback)

Removes a subscription for a service type.

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)

Parameters

serviceType
Type

The type of service to remove the subscription from.

callback
SubscribeServiceCallback

The callback object to remove from the subscription.

Exceptions

serviceType or callback is null.

Applies to

Unsubscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

Removes a subscription for a service type.

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))

Type Parameters

TServiceType

The type of the service to remove the subscription from.

Parameters

callback
SubscribeServiceCallback<TServiceType>

The callback object to remove from the subscription.

Exceptions

callback is null.

Applies to