ExpressionContext Constructor (CodeExpression, Type, Object, Object)

 

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

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

public ExpressionContext(
	CodeExpression expression,
	Type expressionType,
	object owner,
	object presetValue
)

Parameters

expression
Type: System.CodeDom.CodeExpression

The given code expression.

expressionType
Type: System.Type

The given code expression type.

owner
Type: System.Object

The given code expression owner.

presetValue
Type: System.Object

The given code expression preset value.

Exception Condition
ArgumentNullException

expression, expressionType, or owner is null.

.NET Framework
Available since 2.0
Return to top
Show: