ContextItemManager.Unsubscribe Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Unsubscribe(Type, SubscribeContextCallback) |
When overridden in a derived class, removes a subscription. |
Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>) |
Removes a subscription. |
Unsubscribe(Type, SubscribeContextCallback)
When overridden in a derived class, removes a subscription.
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)
Parameters
- contextItemType
- Type
The type of context item to remove the callback from.
- callback
- SubscribeContextCallback
The SubscribeContextCallback to remove.
Exceptions
callback
is null
.
Applies to
Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)
Removes a subscription.
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))
Type Parameters
- TContextItemType
The type of context item to remove the callback from.
Parameters
The SubscribeContextCallback<TContextItemType> to remove.
Exceptions
callback
is null
.