Langue

PathString.StartsWithSegments Méthode

Définition

Surcharges

Nom Description
StartsWithSegments(PathString)

Détermine si le début de cette PathString instance correspond à l’élément spécifié PathString.

StartsWithSegments(PathString, PathString)

Détermine si le début de cette PathString instance correspond au segment spécifié PathString et retourne les segments restants.

StartsWithSegments(PathString, StringComparison)

Détermine si le début de cette PathString instance correspond à celui spécifié PathString lors de la comparaison à l’aide de l’option de comparaison spécifiée.

StartsWithSegments(PathString, PathString, PathString)

Détermine si le début de cette PathString instance correspond au segment spécifié PathString et retourne les segments correspondants et restants.

StartsWithSegments(PathString, StringComparison, PathString)

Détermine si le début de cette PathString instance correspond à celui spécifié PathString lors de la comparaison à l’aide de l’option de comparaison spécifiée et retourne les segments restants.

StartsWithSegments(PathString, StringComparison, PathString, PathString)

Détermine si le début de cette PathString instance correspond à celui spécifié PathString lors de la comparaison à l’aide de l’option de comparaison spécifiée et retourne les segments correspondants et restants.

StartsWithSegments(PathString)

Source:
PathString.cs
Source:
PathString.cs
Source:
PathString.cs

Détermine si le début de cette PathString instance correspond à l’élément spécifié PathString.

public:
 bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other);
public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString -> bool
Public Function StartsWithSegments (other As PathString) As Boolean

Paramètres

other
PathString

PathString à comparer.

Retours

true si la valeur correspond au début de cette chaîne ; sinon, false.

Remarques

Lorsque le other paramètre contient une barre oblique de fin, la PathString case à vérifier doit correspondre exactement ou inclure une barre oblique de fin. Par exemple, pour un PathString « /a/b », cette méthode retourne true « /a », mais retourne false « /a / ». PathString Alors que « /a//b/ » retourne true par rapport à « /a/ ». Une barre oblique inverse ('\') est PathString traitée comme équivalente à une barre oblique ('/') à des fins de détection de limites de segment. Par exemple, une PathString valeur de « /a\b » est retournée true par rapport à « /a ».

S’applique à

StartsWithSegments(PathString, PathString)

Source:
PathString.cs
Source:
PathString.cs
Source:
PathString.cs

Détermine si le début de cette PathString instance correspond au segment spécifié PathString et retourne les segments restants.

public:
 bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % remaining);
public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, out Microsoft.AspNetCore.Http.PathString remaining);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * PathString -> bool
Public Function StartsWithSegments (other As PathString, ByRef remaining As PathString) As Boolean

Paramètres

other
PathString

PathString à comparer.

remaining
PathString

Segments restants après la correspondance.

Retours

true si la valeur correspond au début de cette chaîne ; sinon, false.

Remarques

Lorsque le other paramètre contient une barre oblique de fin, la PathString case à vérifier doit correspondre exactement ou inclure une barre oblique de fin. Par exemple, pour un PathString « /a/b », cette méthode retourne true « /a », mais retourne false « /a / ». PathString Alors que « /a//b/ » retourne true par rapport à « /a/ ». Une barre oblique inverse ('\') est PathString traitée comme équivalente à une barre oblique ('/') à des fins de détection de limites de segment. Par exemple, un PathString « /a\b » retourne true par rapport à « /a » et remaining est « \b » (le caractère d’origine est conservé, pas normalisé).

S’applique à

StartsWithSegments(PathString, StringComparison)

Source:
PathString.cs
Source:
PathString.cs
Source:
PathString.cs

Détermine si le début de cette PathString instance correspond à celui spécifié PathString lors de la comparaison à l’aide de l’option de comparaison spécifiée.

public:
 bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, StringComparison comparisonType);
public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, StringComparison comparisonType);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * StringComparison -> bool
Public Function StartsWithSegments (other As PathString, comparisonType As StringComparison) As Boolean

Paramètres

other
PathString

PathString à comparer.

comparisonType
StringComparison

Une des valeurs d’énumération qui détermine la façon dont cette valeur et cette PathString valeur sont comparées.

Retours

true si la valeur correspond au début de cette chaîne ; sinon, false.

Remarques

Lorsque le other paramètre contient une barre oblique de fin, la PathString case à vérifier doit correspondre exactement ou inclure une barre oblique de fin. Par exemple, pour un PathString « /a/b », cette méthode retourne true « /a », mais retourne false « /a / ». PathString Alors que « /a//b/ » retourne true par rapport à « /a/ ». Une barre oblique inverse ('\') est PathString traitée comme équivalente à une barre oblique ('/') à des fins de détection de limites de segment. Par exemple, une PathString valeur de « /a\b » est retournée true par rapport à « /a ».

S’applique à

StartsWithSegments(PathString, PathString, PathString)

Source:
PathString.cs
Source:
PathString.cs
Source:
PathString.cs

Détermine si le début de cette PathString instance correspond au segment spécifié PathString et retourne les segments correspondants et restants.

public:
 bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % matched, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % remaining);
public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, out Microsoft.AspNetCore.Http.PathString matched, out Microsoft.AspNetCore.Http.PathString remaining);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * PathString * PathString -> bool
Public Function StartsWithSegments (other As PathString, ByRef matched As PathString, ByRef remaining As PathString) As Boolean

Paramètres

other
PathString

PathString à comparer.

matched
PathString

Segments mis en correspondance avec la casse d’origine dans la valeur source.

remaining
PathString

Segments restants après la correspondance.

Retours

true si la valeur correspond au début de cette chaîne ; sinon, false.

Remarques

Lorsque le other paramètre contient une barre oblique de fin, la PathString case à vérifier doit correspondre exactement ou inclure une barre oblique de fin. Par exemple, pour un PathString « /a/b », cette méthode retourne true « /a », mais retourne false « /a / ». PathString Alors que « /a//b/ » retourne true par rapport à « /a/ ». Une barre oblique inverse ('\') est PathString traitée comme équivalente à une barre oblique ('/') à des fins de détection de limites de segment. Par exemple, un PathString « /a\b » retourne true par rapport à « /a » et remaining est « \b » (le caractère d’origine est conservé, pas normalisé).

S’applique à

StartsWithSegments(PathString, StringComparison, PathString)

Source:
PathString.cs
Source:
PathString.cs
Source:
PathString.cs

Détermine si le début de cette PathString instance correspond à celui spécifié PathString lors de la comparaison à l’aide de l’option de comparaison spécifiée et retourne les segments restants.

public:
 bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, StringComparison comparisonType, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % remaining);
public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, StringComparison comparisonType, out Microsoft.AspNetCore.Http.PathString remaining);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * StringComparison * PathString -> bool
Public Function StartsWithSegments (other As PathString, comparisonType As StringComparison, ByRef remaining As PathString) As Boolean

Paramètres

other
PathString

PathString à comparer.

comparisonType
StringComparison

Une des valeurs d’énumération qui détermine la façon dont cette valeur et cette PathString valeur sont comparées.

remaining
PathString

Segments restants après la correspondance.

Retours

true si la valeur correspond au début de cette chaîne ; sinon, false.

Remarques

Lorsque le other paramètre contient une barre oblique de fin, la PathString case à vérifier doit correspondre exactement ou inclure une barre oblique de fin. Par exemple, pour un PathString « /a/b », cette méthode retourne true « /a », mais retourne false « /a / ». PathString Alors que « /a//b/ » retourne true par rapport à « /a/ ». Une barre oblique inverse ('\') est PathString traitée comme équivalente à une barre oblique ('/') à des fins de détection de limites de segment. Par exemple, un PathString « /a\b » retourne true par rapport à « /a » et remaining est « \b » (le caractère d’origine est conservé, pas normalisé).

S’applique à

StartsWithSegments(PathString, StringComparison, PathString, PathString)

Source:
PathString.cs
Source:
PathString.cs
Source:
PathString.cs

Détermine si le début de cette PathString instance correspond à celui spécifié PathString lors de la comparaison à l’aide de l’option de comparaison spécifiée et retourne les segments correspondants et restants.

public:
 bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, StringComparison comparisonType, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % matched, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % remaining);
public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, StringComparison comparisonType, out Microsoft.AspNetCore.Http.PathString matched, out Microsoft.AspNetCore.Http.PathString remaining);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * StringComparison * PathString * PathString -> bool
Public Function StartsWithSegments (other As PathString, comparisonType As StringComparison, ByRef matched As PathString, ByRef remaining As PathString) As Boolean

Paramètres

other
PathString

PathString à comparer.

comparisonType
StringComparison

Une des valeurs d’énumération qui détermine la façon dont cette valeur et cette PathString valeur sont comparées.

matched
PathString

Segments mis en correspondance avec la casse d’origine dans la valeur source.

remaining
PathString

Segments restants après la correspondance.

Retours

true si la valeur correspond au début de cette chaîne ; sinon, false.

Remarques

Lorsque le other paramètre contient une barre oblique de fin, la PathString case à vérifier doit correspondre exactement ou inclure une barre oblique de fin. Par exemple, pour un PathString « /a/b », cette méthode retourne true « /a », mais retourne false « /a / ». PathString Alors que « /a//b/ » retourne true par rapport à « /a/ ». Une barre oblique inverse ('\') est PathString traitée comme équivalente à une barre oblique ('/') à des fins de détection de limites de segment. Par exemple, un PathString « /a\b » retourne true par rapport à « /a » et remaining est « \b » (le caractère d’origine est conservé, pas normalisé).

S’applique à