ServiceManager.GetTarget(Delegate) Metodo

Definizione

Metodo helper che restituisce l'oggetto di destinazione per un delegato. Se il delegato è stato creato per eseguire il proxy di un delegato generico, verrà restituito 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 cui ottenere la destinazione.

Valori restituiti

Restituisce Object, ovvero la destinazione di callback. Ciò può restituire null se il callback rappresenta un oggetto statico.

Eccezioni

callback è null.

Si applica a