EntityTagHeaderValue.Compare(EntityTagHeaderValue, Boolean) Method

Definition

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.

Applies to