Delen via


HeaderDictionaryExtensions.Append Method

Definition

Add new values. Each item remains a separate array entry.

public:
[System::Runtime::CompilerServices::Extension]
 static void Append(Microsoft::AspNetCore::Http::IHeaderDictionary ^ headers, System::String ^ key, Microsoft::Extensions::Primitives::StringValues value);
public static void Append (this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key, Microsoft.Extensions.Primitives.StringValues value);
static member Append : Microsoft.AspNetCore.Http.IHeaderDictionary * string * Microsoft.Extensions.Primitives.StringValues -> unit
<Extension()>
Public Sub Append (headers As IHeaderDictionary, key As String, value As StringValues)

Parameters

headers
IHeaderDictionary

The IHeaderDictionary to use.

key
String

The header name.

value
StringValues

The header value.

Applies to