ContextItemManager.Unsubscribe 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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
例外狀況
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。