HeaderDictionaryExtensions.Append 方法

定义

添加新值。 每一项仍然是单独的数组项。

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)

参数

headers
IHeaderDictionary

要使用的 IHeaderDictionary

key
String

标头名称。

value
StringValues

标头值。

适用于