Expression.NodeType 屬性

定義

取得這個 Expression 的節點類型。Gets the node type of this Expression.

public:
 virtual property System::Linq::Expressions::ExpressionType NodeType { System::Linq::Expressions::ExpressionType get(); };
public:
 property System::Linq::Expressions::ExpressionType NodeType { System::Linq::Expressions::ExpressionType get(); };
public virtual System.Linq.Expressions.ExpressionType NodeType { get; }
public System.Linq.Expressions.ExpressionType NodeType { get; }
member this.NodeType : System.Linq.Expressions.ExpressionType
Public Overridable ReadOnly Property NodeType As ExpressionType
Public ReadOnly Property NodeType As ExpressionType

屬性值

ExpressionType

其中一個 ExpressionType 值。One of the ExpressionType values.

備註

NodeType屬性提供更特製化的說明, Expression 而不只是其衍生型別。The NodeType property provides a more specialized description of an Expression than just its derived type. 例如, BinaryExpression 可以用來表示許多不同類型的二進位運算式,例如除法運算或「大於」運算。For example, a BinaryExpression can be used to represent many different kinds of binary expressions, such as a division operation or a "greater than" operation. NodeType屬性會分別將這些二進位運算式描述為 DivideGreaterThanThe NodeType property would describe these binary expressions as Divide and GreaterThan, respectively.

物件所代表之運算式的靜態 CLR 型別 Expression 是由 Type 屬性工作表示。The static CLR type of the expression that the Expression object represents is represented by the Type property.

適用於