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 de 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
dans le targetString
.
Remarques
La méthode IndexOf retourne une valeur null lorsque substring
est introuvable dans targetString
.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour