Expression.ArrayLength(Expression) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée une UnaryExpression expression qui représente une expression pour obtenir la longueur d’un tableau unidimensionnel.
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
Paramètres
- array
- Expression
Pour Expression définir la Operand propriété égale à.
Retours
Qui UnaryExpression a la NodeType propriété égale à ArrayLength et la Operand propriété égale à array.
Exceptions
array a la valeur null.
array. Le type ne représente pas un type de tableau.
Remarques
La Type propriété de array doit représenter un type de tableau.
La Type propriété du résultat UnaryExpression est égale à Int32. La Method propriété est null, et les deux IsLifted et IsLiftedToNull sont définies sur false.