Block Method (Type, IEnumerable(ParameterExpression), Expression[])

Expression.Block Method (Type, IEnumerable(Of ParameterExpression), Expression())

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

Creates a BlockExpression that contains the given variables and expressions.

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public Shared Function Block ( _
	type As Type, _
	variables As IEnumerable(Of ParameterExpression), _
	ParamArray expressions As Expression() _
) As BlockExpression

Parameters

type
Type: System.Type
The result type of the block.
variables
Type: System.Collections.Generic.IEnumerable(Of ParameterExpression)
The variables in the block.
expressions
Type: System.Linq.Expressions.Expression ()
The expressions in the block.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft