Bewerken

Delen via


ContextItemManager.Unsubscribe Method

Definition

Overloads

Unsubscribe(Type, SubscribeContextCallback)

When overridden in a derived class, removes a subscription.

Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

Removes a subscription.

Unsubscribe(Type, SubscribeContextCallback)

When overridden in a derived class, removes a subscription.

public:
 abstract void Unsubscribe(Type ^ contextItemType, System::Activities::Presentation::SubscribeContextCallback ^ callback);
public abstract void Unsubscribe (Type contextItemType, System.Activities.Presentation.SubscribeContextCallback callback);
abstract member Unsubscribe : Type * System.Activities.Presentation.SubscribeContextCallback -> unit
Public MustOverride Sub Unsubscribe (contextItemType As Type, callback As SubscribeContextCallback)

Parameters

contextItemType
Type

The type of context item to remove the callback from.

Exceptions

callback is null.

Applies to

Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

Removes a subscription.

public:
generic <typename TContextItemType>
 where TContextItemType : System::Activities::Presentation::ContextItem void Unsubscribe(System::Activities::Presentation::SubscribeContextCallback<TContextItemType> ^ callback);
public void Unsubscribe<TContextItemType> (System.Activities.Presentation.SubscribeContextCallback<TContextItemType> callback) where TContextItemType : System.Activities.Presentation.ContextItem;
member this.Unsubscribe : System.Activities.Presentation.SubscribeContextCallback<'ContextItemType (requires 'ContextItemType :> System.Activities.Presentation.ContextItem)> -> unit (requires 'ContextItemType :> System.Activities.Presentation.ContextItem)
Public Sub Unsubscribe(Of TContextItemType As ContextItem) (callback As SubscribeContextCallback(Of TContextItemType))

Type Parameters

TContextItemType

The type of context item to remove the callback from.

Parameters

Exceptions

callback is null.

Applies to