StringSegment.Substring 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
| Nom | Description |
|---|---|
| Substring(Int32) |
Récupère une sous-chaîne à partir de ce StringSegment.
La sous-chaîne commence à la position spécifiée et |
| Substring(Int32, Int32) |
Récupère une sous-chaîne à partir de ce StringSegment.
La sous-chaîne commence à la position spécifiée par |
Substring(Int32)
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
Récupère une sous-chaîne à partir de ce StringSegment.
La sous-chaîne commence à la position spécifiée et offset a la longueur restante.
public:
System::String ^ Substring(int offset);
public string Substring(int offset);
member this.Substring : int -> string
Public Function Substring (offset As Integer) As String
Paramètres
- offset
- Int32
Position de caractère de départ de base zéro d’une sous-chaîne dans ce StringSegment.
Retours
Équivalent String à la sous-chaîne de longueur restante qui commence offset dans ce StringSegment.
Exceptions
offset est supérieur ou égal à ou inférieur à Length zéro.
S’applique à
Substring(Int32, Int32)
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
Récupère une sous-chaîne à partir de ce StringSegment.
La sous-chaîne commence à la position spécifiée par offset et a la valeur spécifiée length.
public:
System::String ^ Substring(int offset, int length);
public string Substring(int offset, int length);
member this.Substring : int * int -> string
Public Function Substring (offset As Integer, length As Integer) As String
Paramètres
- offset
- Int32
Position de caractère de départ de base zéro d’une sous-chaîne dans ce StringSegment.
- length
- Int32
Nombre de caractères dans la sous-chaîne.
Retours
Équivalent String à la sous-chaîne de length ce qui commence offset dans ce StringSegment.
Exceptions
offsetou length est inférieur à zéro, oulengthoffset + est supérieur à .Length