ExpressionContext Constructors

Definition

Initializes a new instance of the ExpressionContext class.

Overloads

ExpressionContext(CodeExpression, Type, Object)

Initializes a new instance of the ExpressionContext class with the given expression and owner.

ExpressionContext(CodeExpression, Type, Object, Object)

Initializes a new instance of the ExpressionContext class with a current value.

ExpressionContext(CodeExpression, Type, Object)

Source:
ExpressionContext.cs
Source:
ExpressionContext.cs
Source:
ExpressionContext.cs

Initializes a new instance of the ExpressionContext class with the given expression and owner.

C#
public ExpressionContext(System.CodeDom.CodeExpression expression, Type expressionType, object owner);

Parameters

expression
CodeExpression

The given code expression.

expressionType
Type

The given code expression type.

owner
Object

The given code expression owner.

Exceptions

expression, expressionType, or owner is null.

See also

Applies to

.NET Framework 4.8.1 ja muut versiot
Tuote Versiot
.NET Framework 2.0, 3.0, 3.5, 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ExpressionContext(CodeExpression, Type, Object, Object)

Source:
ExpressionContext.cs
Source:
ExpressionContext.cs
Source:
ExpressionContext.cs

Initializes a new instance of the ExpressionContext class with a current value.

C#
public ExpressionContext(System.CodeDom.CodeExpression expression, Type expressionType, object owner, object presetValue);
C#
public ExpressionContext(System.CodeDom.CodeExpression expression, Type expressionType, object owner, object? presetValue);

Parameters

expression
CodeExpression

The given code expression.

expressionType
Type

The given code expression type.

owner
Object

The given code expression owner.

presetValue
Object

The given code expression preset value.

Exceptions

expression, expressionType, or owner is null.

See also

Applies to

.NET Framework 4.8.1 ja muut versiot
Tuote Versiot
.NET Framework 2.0, 3.0, 3.5, 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10