Freigeben über


ContextItemManager.Unsubscribe-Methode (Type, SubscribeContextCallback)

Entfernt bei Überschreibung in einer abgeleiteten Klasse ein Abonnement.

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
)

Parameter

  • contextItemType
    Typ: System.Type
    Der Typ des Kontextelements, aus dem der Rückruf entfernt werden soll.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

contextItemType oder callback ist nullNULL-Verweis (Nothing in Visual Basic).

.NET Framework-Sicherheit

Siehe auch

Referenz

ContextItemManager Klasse

Unsubscribe-Überladung

Microsoft.Windows.Design-Namespace

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Weitere Ressourcen

Bearbeiten der Kontextarchitektur

WPF-Designer-Erweiterbarkeit