ContextItemManager.Unsubscribe 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
要從其中移除回呼之內容項目的型別。
- callback
- SubscribeContextCallback
要移除的 SubscribeContextCallback。
例外狀況
callback
為 null
。
適用於
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
要從其中移除回呼之內容項目的型別。
參數
例外狀況
callback
為 null
。