Share via


ContextItemManager.Unsubscribe Method (Type, SubscribeContextCallback)

When overridden in a derived class, removes a subscription.

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

Syntax

'Declaration
Public MustOverride Sub Unsubscribe ( _
    contextItemType As Type, _
    callback As SubscribeContextCallback _
)
public abstract void Unsubscribe(
    Type contextItemType,
    SubscribeContextCallback callback
)
public:
virtual void Unsubscribe(
    Type^ contextItemType, 
    SubscribeContextCallback^ callback
) abstract
abstract Unsubscribe : 
        contextItemType:Type * 
        callback:SubscribeContextCallback -> unit 
public abstract function Unsubscribe(
    contextItemType : Type, 
    callback : SubscribeContextCallback
)

Parameters

  • contextItemType
    Type: System.Type
    The type of context item to remove the callback from.

Exceptions

Exception Condition
ArgumentNullException

contextItemType or 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