EdmFunctions.Length(DbExpression) 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 un DbFunctionExpression élément qui appelle la fonction « Length » canonique avec l’argument spécifié, qui doit avoir un type de résultat de chaîne. Le type de résultat de l’expression est Edm.Int32.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ Length(System::Data::Common::CommandTrees::DbExpression ^ stringArgument);
public static System.Data.Common.CommandTrees.DbFunctionExpression Length(this System.Data.Common.CommandTrees.DbExpression stringArgument);
static member Length : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Length (stringArgument As DbExpression) As DbFunctionExpression
Paramètres
- stringArgument
- DbExpression
Expression qui spécifie la chaîne pour laquelle la longueur doit être calculée.
Retours
Nouvelle DbFunctionExpression qui retourne la longueur de stringArgument.
Exceptions
stringArgument a la valeur null.
stringArgument n’est pas valide.