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
。