PathString.Equals 方法

定义

重载

Equals(PathString)

将此 PathString 值与另一个值进行比较。 默认比较为 StringComparison.OrdinalIgnoreCase。

Equals(Object)

将此 PathString 值与另一个值进行比较。 默认比较为 StringComparison.OrdinalIgnoreCase。

Equals(PathString, StringComparison)

使用特定 StringComparison 类型将此 PathString 值与另一个值进行比较

Equals(PathString)

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

将此 PathString 值与另一个值进行比较。 默认比较为 StringComparison.OrdinalIgnoreCase。

public:
 virtual bool Equals(Microsoft::AspNetCore::Http::PathString other);
public bool Equals (Microsoft.AspNetCore.Http.PathString other);
override this.Equals : Microsoft.AspNetCore.Http.PathString -> bool
Public Function Equals (other As PathString) As Boolean

参数

other
PathString

要比较的第二个 PathString。

返回

如果这两个 PathString 值相等,则为 True

实现

适用于

Equals(Object)

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

将此 PathString 值与另一个值进行比较。 默认比较为 StringComparison.OrdinalIgnoreCase。

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
public override bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

参数

obj
Object

要比较的第二个 PathString。

返回

如果这两个 PathString 值相等,则为 True

适用于

Equals(PathString, StringComparison)

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

使用特定 StringComparison 类型将此 PathString 值与另一个值进行比较

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

参数

other
PathString

要比较的第二个 PathString

comparisonType
StringComparison

要使用的 StringComparison 类型

返回

如果这两个 PathString 值相等,则为 True

适用于