EntityTagHeaderValue.Compare(EntityTagHeaderValue, Boolean) Yöntem

Tanım

RFC belirtimleri (https://tools.ietf.org/html/rfc7232#section-2.3.2 ) altında eşleşip eşleşmediğini görmek için başka biriyle EntityTagHeaderValue karşılaştırır.

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

Parametreler

other
EntityTagHeaderValue

Karşılaştıracak diğer EntityTagHeaderValue .

useStrongComparison
Boolean

true güçlü bir karşılaştırma kullanmak, false zayıf karşılaştırma kullanmak için

Döndürülenler

trueEntityTagHeaderValue verilen karşılaştırma türü için eşleşme varsa, false diğer değer null ise veya karşılaştırma başarısız olduysa.

Şunlara uygulanır