Share via


ContextItemManager.Unsubscribe<TContextItemType> Method (SubscribeContextCallback<TContextItemType>)

Removes a subscription.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Sub Unsubscribe(Of TContextItemType As ContextItem) ( _
    callback As SubscribeContextCallback(Of TContextItemType) _
)
public void Unsubscribe<TContextItemType>(
    SubscribeContextCallback<TContextItemType> callback
)
where TContextItemType : ContextItem
public:
generic<typename TContextItemType>
where TContextItemType : ContextItem
void Unsubscribe(
    SubscribeContextCallback<TContextItemType>^ callback
)
member Unsubscribe : 
        callback:SubscribeContextCallback<'TContextItemType> -> unit  when 'TContextItemType : ContextItem
JScript does not support generic types or methods.

Type Parameters

  • TContextItemType

Parameters

Exceptions

Exception Condition
ArgumentNullException

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

.NET Framework Security

See Also

Reference

ContextItemManager Class

Unsubscribe Overload

Microsoft.Windows.Design Namespace

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Other Resources

Editing Context Architecture

Understanding WPF Designer Extensibility