HttpRequestHeaderCollection.Lookup(String) HttpRequestHeaderCollection.Lookup(String) HttpRequestHeaderCollection.Lookup(String) HttpRequestHeaderCollection.Lookup(String) HttpRequestHeaderCollection.Lookup(String) Method

Definition

Finds an item in the HttpRequestHeaderCollection if it exists.

public : Platform::String Lookup(Platform::String key)
winrt::hstring Lookup(winrt::hstring key) const;
public string Lookup(String key)
Public Function Lookup(key As String) As string
var string = httpRequestHeaderCollection.lookup(key);

Parameters

key
String String String

The key of the item to lookup.

Returns

string string string

The value, if an item with the specified key exists. Use the HasKey method to determine whether the key exists.

Remarks

Use the HasKey method to determine whether the key exists in the HttpRequestHeaderCollection.

When programming with .NET, this method is hidden and developers should use the Item indexer.