ServiceManager.RemoveCallback(Delegate, Delegate) Método

Definição

Um método helper que executa uma Delegate.Remove operação e desfaz delegados que são proxies de callbacks genéricos. Deves usar este método nas tuas 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 para remover o callback de.

toRemove
Delegate

O regresso à remoção.

Devoluções

Devolve Delegate, que é um novo valor a atribuir ao delegado existente.

Aplica-se a