Redigera

Dela 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.

public:
 Variable();
public Variable ();
Public Sub New ()

Applies to

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

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

public:
 Variable(System::Linq::Expressions::Expression<Func<System::Activities::ActivityContext ^, T> ^> ^ defaultExpression);
public Variable (System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext,T>> defaultExpression);
new System.Activities.Variable<'T> : System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext, 'T>> -> System.Activities.Variable<'T>
Public Sub New (defaultExpression As Expression(Of Func(Of ActivityContext, T)))

Parameters

defaultExpression
Expression<Func<ActivityContext,T>>

The default expression.

Applies to

Variable<T>(String)

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

public:
 Variable(System::String ^ name);
public Variable (string name);
new System.Activities.Variable<'T> : string -> System.Activities.Variable<'T>
Public Sub New (name As String)

Parameters

name
String

The variable name.

Applies to

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

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

public:
 Variable(System::String ^ name, System::Linq::Expressions::Expression<Func<System::Activities::ActivityContext ^, T> ^> ^ defaultExpression);
public Variable (string name, System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext,T>> defaultExpression);
new System.Activities.Variable<'T> : string * System.Linq.Expressions.Expression<Func<System.Activities.ActivityContext, 'T>> -> System.Activities.Variable<'T>
Public Sub New (name As String, defaultExpression As Expression(Of Func(Of ActivityContext, T)))

Parameters

name
String

The variable name.

defaultExpression
Expression<Func<ActivityContext,T>>

The default expression.

Applies to

Variable<T>(String, T)

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

public:
 Variable(System::String ^ name, T defaultValue);
public Variable (string name, T defaultValue);
new System.Activities.Variable<'T> : string * 'T -> System.Activities.Variable<'T>
Public Sub New (name As String, defaultValue As T)

Parameters

name
String

The variable name.

defaultValue
T

The default value.

Applies to