EdmFunctions.Contains(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 élément qui appelle la fonction « Contains » canonique avec les arguments spécifiés, qui doivent chacun avoir un type de résultat de chaîne. Le type de résultat de l’expression est booléen.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbExpression ^ Contains(System::Data::Common::CommandTrees::DbExpression ^ searchedString, System::Data::Common::CommandTrees::DbExpression ^ searchedForString);
public static System.Data.Common.CommandTrees.DbExpression Contains(this System.Data.Common.CommandTrees.DbExpression searchedString, System.Data.Common.CommandTrees.DbExpression searchedForString);
static member Contains : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbExpression
<Extension()>
Public Function Contains (searchedString As DbExpression, searchedForString As DbExpression) As DbExpression
Paramètres
- searchedString
- DbExpression
Expression qui spécifie la chaîne à rechercher toute occurrence de searchedForString.
- searchedForString
- DbExpression
Expression qui spécifie la chaîne à rechercher dans searchedString.
Retours
Nouvelle DbFunctionExpression qui retourne une valeur booléenne indiquant si elle se produit ou non searchedForString dans searchedString.
Exceptions
searchedString ou searchedForString est null.
searchedString ou n’est pas searchedForString valide.