Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpResponseHeaderCollection.Insert | insert method

Applies to Windows and Windows Phone

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

Syntax


var boolean = httpResponseHeaderCollection.insert(key, value);

Parameters

key

Type: String [JavaScript] | Platform::String [C++]

The key of the item to be inserted.

value

Type: String [JavaScript] | Platform::String [C++]

The value of the item to insert.

Return value

Type: Boolean [JavaScript] | Platform::Boolean [C++]

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

Remarks

When building Windows Store apps with the Microsoft .NET Framework, this method is hidden and developers should use the System.Collections.Generic.IDictionary<K,V> interface.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http.Headers
Windows::Web::Http::Headers [C++]

Metadata

Windows.winmd

See also

HttpResponseHeaderCollection

 

 

Show:
© 2014 Microsoft