StringSegment.IndexOfAny 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.
Surcharges
IndexOfAny(Char[], Int32, Int32) |
Signale l'index de base zéro de la première occurrence dans cette instance de tout caractère d'un tableau de caractères Unicode spécifié. La recherche commence à une position de caractère spécifiée et examine un nombre spécifié de positions de caractère. |
IndexOfAny(Char[], Int32) |
Signale l'index de base zéro de la première occurrence dans cette instance de tout caractère d'un tableau de caractères Unicode spécifié. La recherche commence à une position de caractère spécifiée. |
IndexOfAny(Char[]) |
Signale l'index de base zéro de la première occurrence dans cette instance de tout caractère d'un tableau de caractères Unicode spécifié. |
IndexOfAny(Char[], Int32, Int32)
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
Signale l'index de base zéro de la première occurrence dans cette instance de tout caractère d'un tableau de caractères Unicode spécifié. La recherche commence à une position de caractère spécifiée et examine un nombre spécifié de positions de caractère.
public:
int IndexOfAny(cli::array <char> ^ anyOf, int startIndex, int count);
public int IndexOfAny (char[] anyOf, int startIndex, int count);
member this.IndexOfAny : char[] * int * int -> int
Public Function IndexOfAny (anyOf As Char(), startIndex As Integer, count As Integer) As Integer
Paramètres
- anyOf
- Char[]
Tableau de caractères Unicode contenant un ou plusieurs caractères à rechercher.
- startIndex
- Int32
Position de départ de la recherche.
- count
- Int32
Nombre de positions de caractère à examiner.
Retours
Position d'index de base zéro de la première occurrence dans cette instance où un caractère quelconque dans anyOf
a été trouvé ; -1 si aucun caractère dans anyOf
n'a été trouvé.
Exceptions
anyOf
a la valeur null
.
startIndex
ou count
est inférieur à zéro, ou startIndex
+ count
est supérieur à Length.
S’applique à
IndexOfAny(Char[], Int32)
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
Signale l'index de base zéro de la première occurrence dans cette instance de tout caractère d'un tableau de caractères Unicode spécifié. La recherche commence à une position de caractère spécifiée.
public:
int IndexOfAny(cli::array <char> ^ anyOf, int startIndex);
public int IndexOfAny (char[] anyOf, int startIndex);
member this.IndexOfAny : char[] * int -> int
Public Function IndexOfAny (anyOf As Char(), startIndex As Integer) As Integer
Paramètres
- anyOf
- Char[]
Tableau de caractères Unicode contenant un ou plusieurs caractères à rechercher.
- startIndex
- Int32
Position de départ de la recherche.
Retours
Position d'index de base zéro de la première occurrence dans cette instance où un caractère quelconque dans anyOf
a été trouvé ; -1 si aucun caractère dans anyOf
n'a été trouvé.
Exceptions
startIndex
est supérieur ou égal à Length, ou est inférieur à zéro.
S’applique à
IndexOfAny(Char[])
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
Signale l'index de base zéro de la première occurrence dans cette instance de tout caractère d'un tableau de caractères Unicode spécifié.
public:
int IndexOfAny(cli::array <char> ^ anyOf);
public int IndexOfAny (char[] anyOf);
member this.IndexOfAny : char[] -> int
Public Function IndexOfAny (anyOf As Char()) As Integer
Paramètres
- anyOf
- Char[]
Tableau de caractères Unicode contenant un ou plusieurs caractères à rechercher.
Retours
Position d'index de base zéro de la première occurrence dans cette instance où un caractère quelconque dans anyOf
a été trouvé ; -1 si aucun caractère dans anyOf
n'a été trouvé.
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