Share via


ExecutionScope.CreateDelegate(Int32, Object[]) Metodo

Definizione

Crea un delegato che può essere utilizzato per eseguire un metodo generato in modo dinamico.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

public:
 Delegate ^ CreateDelegate(int indexLambda, cli::array <System::Object ^> ^ locals);
public Delegate CreateDelegate (int indexLambda, object[] locals);
member this.CreateDelegate : int * obj[] -> Delegate
Public Function CreateDelegate (indexLambda As Integer, locals As Object()) As Delegate

Parametri

indexLambda
Int32

Indice dell'oggetto che archivia informazioni sull’espressione lambda associata del metodo dinamico.

locals
Object[]

Matrice che contiene le variabili locali eseguite dal contesto padre.

Restituisce

Oggetto Delegate che può eseguire un metodo generato in modo dinamico.

Si applica a