HostHeaderValue.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Equals(HostHeaderValue) |
Determines whether this host header value and a specified host header value are identical. |
Equals(Object) |
Determines whether the specified object is equal to the current host header value. |
Equals(HostHeaderValue)
- Source:
- HostHeaderValue.cs
Determines whether this host header value and a specified host header value are identical.
public bool Equals (Microsoft.AspNetCore.HeaderParsing.HostHeaderValue other);
override this.Equals : Microsoft.AspNetCore.HeaderParsing.HostHeaderValue -> bool
Public Function Equals (other As HostHeaderValue) As Boolean
Parameters
- other
- HostHeaderValue
The other host header value.
Returns
true
if the two values are identical; otherwise, false
.
Implements
Applies to
Equals(Object)
- Source:
- HostHeaderValue.cs
Determines whether the specified object is equal to the current host header value.
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.
Returns
true
if the specified object is identical to the current host header value; otherwise, false
.