EdmFunctions.Substring(DbExpression, DbExpression, DbExpression) Méthode
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 objet DbFunctionExpression appelant la fonction 'Substring' canonique avec les arguments spécifiés, qui doivent avoir un résultat de type numérique entier et chaîne. Le résultat de l’expression est de type 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
- stringArgument
- DbExpression
Expression qui spécifie la chaîne dont la sous-chaîne doit être extraite.
- start
- DbExpression
Expression qui spécifie l'index de départ dont la sous-chaîne doit être extraite.
- length
- DbExpression
Expression qui spécifie la longueur de la sous-chaîne.
Nouvelle DbFunctionExpression qui retourne la sous-chaîne de longueur length
à partir start
de stringArgument
.
stringArgument
, start
ou length
est null
.
stringArgument
, start
ou length
n’est pas valide.
La sous-chaîne nécessite que l’index spécifié par le démarrage soit <basé sur< b1>/b>.
Produit | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :