HeaderDictionary 构造函数

定义

重载

HeaderDictionary()

初始化 HeaderDictionary 的新实例。

HeaderDictionary(Dictionary<String,StringValues>)

初始化 HeaderDictionary 的新实例。

HeaderDictionary(Int32)

初始化 HeaderDictionary 的新实例。

HeaderDictionary()

Source:
HeaderDictionary.cs
Source:
HeaderDictionary.cs
Source:
HeaderDictionary.cs

初始化 HeaderDictionary 的新实例。

public:
 HeaderDictionary();
public HeaderDictionary ();
Public Sub New ()

适用于

HeaderDictionary(Dictionary<String,StringValues>)

Source:
HeaderDictionary.cs
Source:
HeaderDictionary.cs
Source:
HeaderDictionary.cs

初始化 HeaderDictionary 的新实例。

public:
 HeaderDictionary(System::Collections::Generic::Dictionary<System::String ^, Microsoft::Extensions::Primitives::StringValues> ^ store);
public HeaderDictionary (System.Collections.Generic.Dictionary<string,Microsoft.Extensions.Primitives.StringValues> store);
public HeaderDictionary (System.Collections.Generic.Dictionary<string,Microsoft.Extensions.Primitives.StringValues>? store);
new Microsoft.AspNetCore.Http.HeaderDictionary : System.Collections.Generic.Dictionary<string, Microsoft.Extensions.Primitives.StringValues> -> Microsoft.AspNetCore.Http.HeaderDictionary
Public Sub New (store As Dictionary(Of String, StringValues))

参数

store
Dictionary<String,StringValues>

要用作后备存储区的值。

适用于

HeaderDictionary(Int32)

Source:
HeaderDictionary.cs
Source:
HeaderDictionary.cs
Source:
HeaderDictionary.cs

初始化 HeaderDictionary 的新实例。

public:
 HeaderDictionary(int capacity);
public HeaderDictionary (int capacity);
new Microsoft.AspNetCore.Http.HeaderDictionary : int -> Microsoft.AspNetCore.Http.HeaderDictionary
Public Sub New (capacity As Integer)

参数

capacity
Int32

此实例可以包含的初始标头数。

适用于