ContextItemManager.Unsubscribe 方法

定义

重载

Unsubscribe(Type, SubscribeContextCallback)

在派生类中重写时,移除一个订阅。

Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

移除一个订阅。

Unsubscribe(Type, SubscribeContextCallback)

在派生类中重写时,移除一个订阅。

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)

参数

contextItemType
Type

要从中移除回调的上下文项的类型。

例外

callbacknull

适用于

Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

移除一个订阅。

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

类型参数

TContextItemType

要从中移除回调的上下文项的类型。

参数

例外

callbacknull

适用于