EntityTagHeaderValue.Compare(EntityTagHeaderValue, Boolean) 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.
Compares against another EntityTagHeaderValue to see if they match under the RFC specifications (https://tools.ietf.org/html/rfc7232#section-2.3.2).
public:
bool Compare(Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ other, bool useStrongComparison);
public bool Compare (Microsoft.Net.Http.Headers.EntityTagHeaderValue other, bool useStrongComparison);
public bool Compare (Microsoft.Net.Http.Headers.EntityTagHeaderValue? other, bool useStrongComparison);
member this.Compare : Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> bool
Public Function Compare (other As EntityTagHeaderValue, useStrongComparison As Boolean) As Boolean
Parameters
- other
- EntityTagHeaderValue
The other EntityTagHeaderValue to compare against.
- useStrongComparison
- Boolean
true
to use a strong comparison, false
to use a weak comparison
Returns
true
if the EntityTagHeaderValue match for the given comparison type,
false
if the other value is null or the comparison failed.