Freigeben über


ContextItemManager.RemoveCallback-Methode

Eine Hilfsmethode, die ein Delegate.Remove durchführt, jedoch weiß, wie Delegaten aufgelöst werden, die als Proxy für generische Rückrufe dienen.

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

Syntax

'Declaration
Protected Shared Function RemoveCallback ( _
    existing As Delegate, _
    toRemove As Delegate _
) As Delegate
protected static Delegate RemoveCallback(
    Delegate existing,
    Delegate toRemove
)
protected:
static Delegate^ RemoveCallback(
    Delegate^ existing, 
    Delegate^ toRemove
)
static member RemoveCallback : 
        existing:Delegate * 
        toRemove:Delegate -> Delegate 
protected static function RemoveCallback(
    existing : Delegate, 
    toRemove : Delegate
) : Delegate

Parameter

  • toRemove
    Typ: System.Delegate
    Der Delegat, der aus dem vorhandenen entfernt werden soll.

Rückgabewert

Typ: System.Delegate
Der neue Delegat, der dem vorhandenen zugewiesen sein sollte.

Hinweise

Verwenden Sie RemoveCallback in Ihren Unsubscribe-Implementierungen.

.NET Framework-Sicherheit

Siehe auch

Referenz

ContextItemManager Klasse

Microsoft.Windows.Design-Namespace

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Weitere Ressourcen

Bearbeiten der Kontextarchitektur

WPF-Designer-Erweiterbarkeit