PathString.StartsWithSegments 方法

定义

重载

StartsWithSegments(PathString)

确定此 PathString 实例的开头是否与指定的 PathString匹配。

StartsWithSegments(PathString, PathString)

确定此 PathString 实例的开头是否与指定的 PathString 匹配,并返回剩余的段。

StartsWithSegments(PathString, StringComparison)

使用指定的PathString比较选项比较时,确定此PathString实例的开头是否与指定的 匹配。

StartsWithSegments(PathString, PathString, PathString)

确定此 PathString 实例的开头是否与指定的 PathString 匹配,并返回匹配段和剩余段。

StartsWithSegments(PathString, StringComparison, PathString)

在使用指定的PathString比较选项进行比较时,确定此PathString实例的开头是否与指定的 匹配,并返回剩余的段。

StartsWithSegments(PathString, StringComparison, PathString, PathString)

使用指定的比较选项确定此 PathString 实例的开头是否与指定的 PathString 匹配,并返回匹配段和剩余段。

StartsWithSegments(PathString)

Source:
PathString.cs
Source:
PathString.cs

确定此 PathString 实例的开头是否与指定的 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

参数

other
PathString

要比较的 PathString

返回

如果值与此字符串的开头匹配,则为 true;否则为 false。

适用于

StartsWithSegments(PathString, PathString)

Source:
PathString.cs
Source:
PathString.cs

确定此 PathString 实例的开头是否与指定的 PathString 匹配,并返回剩余的段。

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

参数

other
PathString

要比较的 PathString

remaining
PathString

匹配后的剩余段。

返回

如果值与此字符串的开头匹配,则为 true;否则为 false。

适用于

StartsWithSegments(PathString, StringComparison)

Source:
PathString.cs
Source:
PathString.cs

使用指定的PathString比较选项比较时,确定此PathString实例的开头是否与指定的 匹配。

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

参数

other
PathString

要比较的 PathString

comparisonType
StringComparison

确定如何比较此 PathString 和 值的枚举值之一。

返回

如果值与此字符串的开头匹配,则为 true;否则为 false。

适用于

StartsWithSegments(PathString, PathString, PathString)

Source:
PathString.cs
Source:
PathString.cs

确定此 PathString 实例的开头是否与指定的 PathString 匹配,并返回匹配段和剩余段。

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

参数

other
PathString

要比较的 PathString

matched
PathString

源值中具有原始大小写的匹配段。

remaining
PathString

匹配后的剩余段。

返回

如果值与此字符串的开头匹配,则为 true;否则为 false。

适用于

StartsWithSegments(PathString, StringComparison, PathString)

Source:
PathString.cs
Source:
PathString.cs

在使用指定的PathString比较选项进行比较时,确定此PathString实例的开头是否与指定的 匹配,并返回剩余的段。

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

参数

other
PathString

要比较的 PathString

comparisonType
StringComparison

确定如何比较此 PathString 和 值的枚举值之一。

remaining
PathString

匹配后的剩余段。

返回

如果值与此字符串的开头匹配,则为 true;否则为 false。

适用于

StartsWithSegments(PathString, StringComparison, PathString, PathString)

Source:
PathString.cs
Source:
PathString.cs

使用指定的比较选项确定此 PathString 实例的开头是否与指定的 PathString 匹配,并返回匹配段和剩余段。

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

参数

other
PathString

要比较的 PathString

comparisonType
StringComparison

确定如何比较此 PathString 和 值的枚举值之一。

matched
PathString

源值中具有原始大小写的匹配段。

remaining
PathString

匹配后的剩余段。

返回

如果值与此字符串的开头匹配,则为 true;否则为 false。

适用于