OpenTypeMethods.IndexOf(Object, Object) 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.
Retourne l’index d’une sous-chaîne dans la chaîne cible.
public:
static System::Object ^ IndexOf(System::Object ^ targetString, System::Object ^ substring);
public static object IndexOf(object targetString, object substring);
static member IndexOf : obj * obj -> obj
Public Shared Function IndexOf (targetString As Object, substring As Object) As Object
Paramètres
- targetString
- Object
Chaîne cible.
- substring
- Object
Sous-chaîne à rechercher.
Retours
Index de l’emplacement de substring l’objet targetString.
Remarques
La IndexOf méthode retourne une valeur Null lorsqu’elle substring est introuvable dans targetString.