HttpRequestHeaderCollection.HasKey(String) HttpRequestHeaderCollection.HasKey(String) HttpRequestHeaderCollection.HasKey(String) HttpRequestHeaderCollection.HasKey(String) HttpRequestHeaderCollection.HasKey(String) Method

Definition

Determines whether the HttpRequestHeaderCollection contains the specified key.

public : Platform::Boolean HasKey(Platform::String key)
bool HasKey(winrt::hstring key) const;
public bool HasKey(String key)
Public Function HasKey(key As String) As bool
var bool = httpRequestHeaderCollection.hasKey(key);

Parameters

key
String String String

The key associated with the item to locate.

Returns

bool bool bool

true if the key is found; otherwise, false.

Remarks

When programming with .NET, this method is hidden and developers should use ContainsKey.