Expression 建構函式

定義

建構 Expression 的新執行個體。Constructs a new instance of Expression.

多載

Expression()

建構 Expression 的新執行個體。Constructs a new instance of Expression.

Expression(ExpressionType, Type)
已過時。

初始化 Expression 類別的新執行個體。Initializes a new instance of the Expression class.

Expression()

建構 Expression 的新執行個體。Constructs a new instance of Expression.

protected:
 Expression();
protected Expression ();
Protected Sub New ()

適用於

Expression(ExpressionType, Type)

警告

use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.

初始化 Expression 類別的新執行個體。Initializes a new instance of the Expression class.

protected:
 Expression(System::Linq::Expressions::ExpressionType nodeType, Type ^ type);
[System.Obsolete("use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.")]
protected Expression (System.Linq.Expressions.ExpressionType nodeType, Type type);
protected Expression (System.Linq.Expressions.ExpressionType nodeType, Type type);
[<System.Obsolete("use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.")>]
new System.Linq.Expressions.Expression : System.Linq.Expressions.ExpressionType * Type -> System.Linq.Expressions.Expression
new System.Linq.Expressions.Expression : System.Linq.Expressions.ExpressionType * Type -> System.Linq.Expressions.Expression
Protected Sub New (nodeType As ExpressionType, type As Type)

參數

nodeType
ExpressionType

ExpressionType 可設定為節點類型。The ExpressionType to set as the node type.

type
Type

這個 TypeExpressionThe Type of this Expression.

屬性

備註

這個函式是從衍生類別中的函式呼叫。This constructor is called from constructors in derived classes.

適用於