ContextItemManager.GetTarget(Delegate) Metodo

Definizione

Rappresenta un metodo di supporto che restituisce l'oggetto di destinazione per un delegato. Se il delegato è stato creato per il proxy di un delegato generico, questo metodo restituisce l'oggetto originale, non il proxy.

protected:
 static System::Object ^ GetTarget(Delegate ^ callback);
protected static object GetTarget (Delegate callback);
static member GetTarget : Delegate -> obj
Protected Shared Function GetTarget (callback As Delegate) As Object

Parametri

callback
Delegate

Il callback per la destinazione desiderata.

Restituisce

Restituisce un Object che contiene l'oggetto di destinazione del callback.

Eccezioni

callback è null.

Si applica a