EntityTagHeaderValue.Compare(EntityTagHeaderValue, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
比較另一個 EntityTagHeaderValue ,以查看它們是否符合 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
參數
- other
- EntityTagHeaderValue
要比較的另一個 EntityTagHeaderValue 。
- useStrongComparison
- Boolean
true
使用強式比較, false
使用弱式比較
傳回
true
EntityTagHeaderValue如果符合指定的比較類型,則為 , false
如果另一個值為 Null 或比較失敗則為 。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應