ServiceManager.GetTarget(Delegate) Metodo

Definizione

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 restituirà correttamente 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

Delegato per il quale ottenere la destinazione.

Restituisce

Restituisce un oggetto Object che è la destinazione del callback. Può restituire null se il callback rappresenta un oggetto statico.

Eccezioni

callback è null.

Si applica a