ContextItemManager.Unsubscribe<ContextItemType> Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Removes a subscription.

Namespace:  System.Activities.Design
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)


Public Sub Unsubscribe(Of ContextItemType As ContextItem) ( _
    callback As SubscribeContextCallback(Of ContextItemType) _
Dim instance As ContextItemManager
Dim callback As SubscribeContextCallback(Of ContextItemType)

public void Unsubscribe<ContextItemType>(
    SubscribeContextCallback<ContextItemType> callback
where ContextItemType : ContextItem
generic<typename ContextItemType>
where ContextItemType : ContextItem
void Unsubscribe(
    SubscribeContextCallback<ContextItemType>^ callback
JScript does not support generic types or methods.
member Unsubscribe : 
        callback:SubscribeContextCallback<'ContextItemType> -> unit  when 'ContextItemType : ContextItem

Type Parameters

  • ContextItemType
    The type of context item to remove the callback from.



Exception Condition

callback is nulla null reference (Nothing in Visual Basic).

.NET Framework Security


Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also


ContextItemManager Class

ContextItemManager Members

System.Activities.Design Namespace