PathString.StartsWithSegments PathString.StartsWithSegments PathString.StartsWithSegments Method

Definition

Overloads

StartsWithSegments(PathString) StartsWithSegments(PathString) StartsWithSegments(PathString)

Determines whether the beginning of this PathString instance matches the specified PathString.

StartsWithSegments(PathString, PathString) StartsWithSegments(PathString, PathString) StartsWithSegments(PathString, PathString)

Determines whether the beginning of this PathString instance matches the specified PathString and returns the remaining segments.

StartsWithSegments(PathString, StringComparison) StartsWithSegments(PathString, StringComparison) StartsWithSegments(PathString, StringComparison)

Determines whether the beginning of this PathString instance matches the specified PathString when compared using the specified comparison option.

StartsWithSegments(PathString, PathString, PathString) StartsWithSegments(PathString, PathString, PathString) StartsWithSegments(PathString, PathString, PathString)

Determines whether the beginning of this PathString instance matches the specified PathString and returns the matched and remaining segments.

StartsWithSegments(PathString, StringComparison, PathString) StartsWithSegments(PathString, StringComparison, PathString) StartsWithSegments(PathString, StringComparison, PathString)

Determines whether the beginning of this PathString instance matches the specified PathString when compared using the specified comparison option and returns the remaining segments.

StartsWithSegments(PathString, StringComparison, PathString, PathString) StartsWithSegments(PathString, StringComparison, PathString, PathString) StartsWithSegments(PathString, StringComparison, PathString, PathString)

Determines whether the beginning of this PathString instance matches the specified PathString when compared using the specified comparison option and returns the matched and remaining segments.

StartsWithSegments(PathString) StartsWithSegments(PathString) StartsWithSegments(PathString)

Determines whether the beginning of this PathString instance matches the specified PathString.

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

Parameters

other
PathString PathString PathString

The PathString to compare.

Returns

true if value matches the beginning of this string; otherwise, false.

StartsWithSegments(PathString, PathString) StartsWithSegments(PathString, PathString) StartsWithSegments(PathString, PathString)

Determines whether the beginning of this PathString instance matches the specified PathString and returns the remaining segments.

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

Parameters

other
PathString PathString PathString

The PathString to compare.

remaining
PathString PathString PathString

The remaining segments after the match.

Returns

true if value matches the beginning of this string; otherwise, false.

StartsWithSegments(PathString, StringComparison) StartsWithSegments(PathString, StringComparison) StartsWithSegments(PathString, StringComparison)

Determines whether the beginning of this PathString instance matches the specified PathString when compared using the specified comparison option.

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

Parameters

other
PathString PathString PathString

The PathString to compare.

comparisonType
StringComparison StringComparison StringComparison

One of the enumeration values that determines how this PathString and value are compared.

Returns

true if value matches the beginning of this string; otherwise, false.

StartsWithSegments(PathString, PathString, PathString) StartsWithSegments(PathString, PathString, PathString) StartsWithSegments(PathString, PathString, PathString)

Determines whether the beginning of this PathString instance matches the specified PathString and returns the matched and remaining segments.

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 *  *  -> bool
Public Function StartsWithSegments (other As PathString, ByRef matched As PathString, ByRef remaining As PathString) As Boolean

Parameters

other
PathString PathString PathString

The PathString to compare.

matched
PathString PathString PathString

The matched segments with the original casing in the source value.

remaining
PathString PathString PathString

The remaining segments after the match.

Returns

true if value matches the beginning of this string; otherwise, false.

StartsWithSegments(PathString, StringComparison, PathString) StartsWithSegments(PathString, StringComparison, PathString) StartsWithSegments(PathString, StringComparison, PathString)

Determines whether the beginning of this PathString instance matches the specified PathString when compared using the specified comparison option and returns the remaining segments.

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

Parameters

other
PathString PathString PathString

The PathString to compare.

comparisonType
StringComparison StringComparison StringComparison

One of the enumeration values that determines how this PathString and value are compared.

remaining
PathString PathString PathString

The remaining segments after the match.

Returns

true if value matches the beginning of this string; otherwise, false.

StartsWithSegments(PathString, StringComparison, PathString, PathString) StartsWithSegments(PathString, StringComparison, PathString, PathString) StartsWithSegments(PathString, StringComparison, PathString, PathString)

Determines whether the beginning of this PathString instance matches the specified PathString when compared using the specified comparison option and returns the matched and remaining segments.

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 *  *  -> bool
Public Function StartsWithSegments (other As PathString, comparisonType As StringComparison, ByRef matched As PathString, ByRef remaining As PathString) As Boolean

Parameters

other
PathString PathString PathString

The PathString to compare.

comparisonType
StringComparison StringComparison StringComparison

One of the enumeration values that determines how this PathString and value are compared.

matched
PathString PathString PathString

The matched segments with the original casing in the source value.

remaining
PathString PathString PathString

The remaining segments after the match.

Returns

true if value matches the beginning of this string; otherwise, false.

Applies to