EntityTagHeaderValue.Compare(EntityTagHeaderValue, Boolean) Méthode

Définition

Compare à un autre EntityTagHeaderValue pour voir s’ils correspondent aux spécifications 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

Paramètres

other
EntityTagHeaderValue

L’autre EntityTagHeaderValue à comparer.

useStrongComparison
Boolean

true pour utiliser une comparaison forte, false pour utiliser une comparaison faible

Retours

true si la EntityTagHeaderValue correspondance pour le type de comparaison donné, false si l’autre valeur est null ou si la comparaison a échoué.

S’applique à