CreateDelegate Method
Collapse the table of content
Expand the table of content

ExecutionScope.CreateDelegate Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a delegate that can be used to execute a dynamically generated method.

Namespace:  System.Runtime.CompilerServices
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public Function CreateDelegate ( _
	indexLambda As Integer, _
	locals As Object() _
) As Delegate

Parameters

indexLambda
Type: System.Int32
The index of the object that stores information about associated lambda expression of the dynamic method.
locals
Type: System.Object ()
An array that contains the hoisted local variables from the parent context.

Return Value

Type: System.Delegate
A Delegate that can execute a dynamically generated method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft