HostString.Equals Method

Definition

Overloads

Equals(HostString)

Compares the equality of the Value property, ignoring case.

Equals(Object)

Compares against the given object only if it is a HostString.

Equals(HostString)

Compares the equality of the Value property, ignoring case.

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

Parameters

other
HostString

The HostString to compare against.

Returns

true if they have the same value.

Implements

Applies to

Equals(Object)

Compares against the given object only if it is a HostString.

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

Parameters

obj
Object

The Object to compare against.

Returns

true if they have the same value.

Applies to