EdmFunctions.Length(DbExpression) Méthode

Définition

Crée un DbFunctionExpression qui appelle la fonction « Length » canonique avec l’argument spécifié, qui doit avoir un résultat de type chaîne. Le résultat de l’expression est de type 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 dont 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.

S’applique à