HttpRequestHeaderCollection.Insert(String, String) HttpRequestHeaderCollection.Insert(String, String) HttpRequestHeaderCollection.Insert(String, String) HttpRequestHeaderCollection.Insert(String, String) HttpRequestHeaderCollection.Insert(String, String) Method

Definition

Inserts or replaces an item in the HttpRequestHeaderCollection with the specified key and value.

public : Platform::Boolean Insert(Platform::String key, Platform::String value)
bool Insert(winrt::hstring key, winrt::hstring value) const;
public bool Insert(String key, String value)
Public Function Insert(key As String, value As String) As bool
var bool = httpRequestHeaderCollection.insert(key, value);

Parameters

key
String String String

The key of the item to be inserted.

value
String String String

The value of the item to insert.

Returns

bool bool bool

true if an item with the specified key is an existing item that was replaced; otherwise false.

Remarks

When programming with .NET, this method is hidden and developers should use the Add methods.