Array Length(Expression) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
An Expression to set the Operand property equal to.
A UnaryExpression that has the NodeType property equal to ArrayLength and the Operand property equal to
array.Type does not represent an array type.
The Type property of
array must represent an array type.
The Type property of the resulting UnaryExpression is equal to Int32. The Method property is
null, and both IsLifted and IsLiftedToNull are set to