Método ContextItemManager.RemoveCallback

Um método auxiliar que realiza uma Delegate.Remove, mas sabe como decodificar os delegados são proxies para retornos de chamada genéricos.

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

Sintaxe

'Declaração
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

Parâmetros

Valor de retorno

Tipo: System.Delegate
Novo delegado deve ser atribuído aos existentes.

Comentários

Use RemoveCallback no seu Unsubscribe implementações.

Segurança do .NET Framework

Consulte também

Referência

ContextItemManager Classe

Namespace Microsoft.Windows.Design

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Outros recursos

Editar contexto arquitetura

Noções básicas sobre extensibilidade Designer WPF