Expression.ArrayLength(Expression) Expression.ArrayLength(Expression) Expression.ArrayLength(Expression) Expression.ArrayLength(Expression) Method

定義

1 次元配列の長さを取得する式を表す UnaryExpression を作成します。Creates a UnaryExpression that represents an expression for obtaining the length of a one-dimensional array.

public:
 static System::Linq::Expressions::UnaryExpression ^ ArrayLength(System::Linq::Expressions::Expression ^ array);
public static System.Linq.Expressions.UnaryExpression ArrayLength (System.Linq.Expressions.Expression array);
static member ArrayLength : System.Linq.Expressions.Expression -> System.Linq.Expressions.UnaryExpression
Public Shared Function ArrayLength (array As Expression) As UnaryExpression

パラメーター

array
Expression Expression Expression Expression

Expression プロパティを等しく設定する OperandAn Expression to set the Operand property equal to.

戻り値

UnaryExpression と等しい NodeType プロパティおよび ArrayLength と等しい Operand プロパティを含む arrayA UnaryExpression that has the NodeType property equal to ArrayLength and the Operand property equal to array.

例外

array.Type は配列型を表しません。array.Type does not represent an array type.

注釈

Typeプロパティのarray配列型を表す必要があります。The Type property of array must represent an array type.

TypeプロパティUnaryExpressionと等しいInt32します。The Type property of the resulting UnaryExpression is equal to Int32. Methodプロパティはnull、両方とIsLiftedIsLiftedToNullに設定されているfalseします。The Method property is null, and both IsLifted and IsLiftedToNull are set to false.

適用対象