ContextItemManager.Unsubscribe Method (Type, SubscribeContextCallback)

When overridden in a derived class, removes a subscription.

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

Syntax

'Declaration
Public MustOverride Sub Unsubscribe ( _
    contextItemType As Type, _
    callback As SubscribeContextCallback _
)
'Usage
Dim instance As ContextItemManager 
Dim contextItemType As Type 
Dim callback As SubscribeContextCallback

instance.Unsubscribe(contextItemType, _
    callback)
public abstract void Unsubscribe(
    Type contextItemType,
    SubscribeContextCallback callback
)
public:
virtual void Unsubscribe(
    Type^ contextItemType, 
    SubscribeContextCallback^ callback
) abstract
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

ContextItemManager Members

Unsubscribe Overload

Microsoft.Windows.Design Namespace

ContextItem

SubscribeContextCallback<ContextItemType>

ServiceManager

FeatureManager

Other Resources

Editing Context Architecture

Understanding WPF Designer Extensibility