Variable<T> Constructor (String, Expression<Func<ActivityContext, T>>)

.NET Framework (current version)
 

Initializes a new instance of the Variable<T> class with the variable name and default expression.

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public Variable(
	string name,
	Expression<Func<ActivityContext, T>> defaultExpression
)

Parameters

name
Type: System.String

The variable name.

defaultExpression
Type: System.Linq.Expressions.Expression<Func<ActivityContext, T>>

The default expression.

.NET Framework
Available since 4.0
Return to top
Show: