Skip to main content

Windows Dev Center

HttpResponseHeaderCollection.Add method

Adds an item to the HttpResponseHeaderCollection.

Syntax


public void Add(
  string key, 
  string value
)

Public Sub Add(
  key As String,  
  value As String 
)

Parameters

key

Type: System.String

The key of the item to add.

value

Type: System.String

The item value to add.

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

See also

HttpResponseHeaderCollection