EdmFunctions.Substring(DbExpression, DbExpression, 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 qui appelle la fonction « Substring » canonique avec les arguments spécifiés, qui doivent avoir une chaîne et des types de résultats numériques entiers. Le type de résultat de l’expression est chaîne.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ Substring(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ start, System::Data::Common::CommandTrees::DbExpression ^ length);
public static System.Data.Common.CommandTrees.DbFunctionExpression Substring(this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression start, System.Data.Common.CommandTrees.DbExpression length);
static member Substring : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Substring (stringArgument As DbExpression, start 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.
- start
- DbExpression
Expression qui spécifie l’index de départ à partir duquel la sous-chaîne doit être prise.
- length
- DbExpression
Expression qui spécifie la longueur de la sous-chaîne.
Retours
Nouvelle DbFunctionExpression qui retourne la sous-chaîne de longueur length à partir de stringArgument .start
Exceptions
stringArgument, startou length est null.
stringArgument, startou length n’est pas valide.
Remarques
La sous-chaîne requiert que l’index spécifié par le début soit <b>1/<b>.