HttpHeadersNonValidated.IReadOnlyDictionary<String,HeaderStringValues>.ContainsKey 方法

定义

确定只读字典是否包含具有指定键的元素。

 virtual bool System.Collections.Generic.IReadOnlyDictionary<System.String,System.Net.Http.Headers.HeaderStringValues>.ContainsKey(System::String ^ key) = System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Net::Http::Headers::HeaderStringValues>::ContainsKey;
bool IReadOnlyDictionary<string,HeaderStringValues>.ContainsKey (string key);
abstract member System.Collections.Generic.IReadOnlyDictionary<System.String,System.Net.Http.Headers.HeaderStringValues>.ContainsKey : string -> bool
override this.System.Collections.Generic.IReadOnlyDictionary<System.String,System.Net.Http.Headers.HeaderStringValues>.ContainsKey : string -> bool
Function ContainsKey (key As String) As Boolean Implements IReadOnlyDictionary(Of String, HeaderStringValues).ContainsKey

参数

key
String

要定位的键。

返回

如果该只读词典包含一具有指定键的元素,则为 true;否则为 false

实现

适用于