ServiceManager.RemoveCallback(Delegate, Delegate) Método

Definição

Um método auxiliar que executa uma Delegate.Remove operação e desembrulha delegados que são proxies para retornos de chamada genéricos. Você deve usar esse método em suas Unsubscribe implementações.

protected:
 static Delegate ^ RemoveCallback(Delegate ^ existing, Delegate ^ toRemove);
protected static Delegate RemoveCallback(Delegate existing, Delegate toRemove);
static member RemoveCallback : Delegate * Delegate -> Delegate
Protected Shared Function RemoveCallback (existing As Delegate, toRemove As Delegate) As Delegate

Parâmetros

existing
Delegate

O delegado existente do qual remover o retorno de chamada.

toRemove
Delegate

O retorno de chamada a ser removido.

Retornos

Retorna Delegate, que é um novo valor a ser atribuído ao delegado existente.

Aplica-se a