Udostępnij za pośrednictwem


EntityTagHeaderValue.Compare(EntityTagHeaderValue, Boolean) Metoda

Definicja

Porównuje się z innym EntityTagHeaderValue , aby sprawdzić, czy są zgodne ze specyfikacjami RFC (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

Parametry

other
EntityTagHeaderValue

EntityTagHeaderValue Druga do porównania.

useStrongComparison
Boolean

true aby użyć silnego porównania, false aby użyć słabego porównania

Zwraca

trueEntityTagHeaderValue jeśli dopasowanie dla danego typu porównania, false jeśli druga wartość ma wartość null lub porównanie nie powiodło się.

Dotyczy