EdmFunctions.Right(DbExpression, DbExpression) Méthode

Définition

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Right(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ length);
public static System.Data.Common.CommandTrees.DbFunctionExpression Right(this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression length);
static member Right : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Right (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 à droite.

length
DbExpression

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

Retours

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

Exceptions

stringArgument ou length est null.

stringArgument n’est pas valide.

S’applique à