EdmFunctions.Left(DbExpression, DbExpression) Méthode

Définition

Crée un DbFunctionExpression qui appelle la fonction « Left » canonique avec les arguments spécifiés, qui doivent avoir une chaîne et un type de résultat numérique entier. Le type de résultat de l’expression est chaîne.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Left(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ length);
public static System.Data.Common.CommandTrees.DbFunctionExpression Left(this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression length);
static member Left : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Left (stringArgument As DbExpression, length As DbExpression) As DbFunctionExpression

Paramètres

stringArgument
DbExpression

Expression qui spécifie la chaîne à partir de laquelle extraire la sous-chaîne la plus à gauche.

length
DbExpression

Expression qui spécifie la longueur de la sous-chaîne la plus à gauche à extraire de stringArgument.

Retours

Nouvelle DbFunctionExpression qui retourne la sous-chaîne la plus à gauche de la longueur length .stringArgument

Exceptions

stringArgument ou length est null.

stringArgument n’est pas valide.

S’applique à