Edit

Share via


Variable<T> Constructors

Definition

Initializes a new instance of the Variable<T> class.

Overloads

Variable<T>()

Initializes a new instance of the Variable<T> class.

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

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

Variable<T>(String)

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

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

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

Variable<T>(String, T)

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

Variable<T>()

Initializes a new instance of the Variable<T> class.

C#
public Variable();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

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

C#
public Variable(System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext,T>> defaultExpression);

Parameters

defaultExpression
Expression<Func<ActivityContext,T>>

The default expression.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Variable<T>(String)

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

C#
public Variable(string name);

Parameters

name
String

The variable name.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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

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

C#
public Variable(string name, System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext,T>> defaultExpression);

Parameters

name
String

The variable name.

defaultExpression
Expression<Func<ActivityContext,T>>

The default expression.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Variable<T>(String, T)

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

C#
public Variable(string name, T defaultValue);

Parameters

name
String

The variable name.

defaultValue
T

The default value.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1