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

適用於