NameValueHeaderValue 构造函数

定义

重载

NameValueHeaderValue(StringSegment)

初始化 NameValueHeaderValue 的新实例。

NameValueHeaderValue(String)
NameValueHeaderValue(StringSegment, StringSegment)

初始化 NameValueHeaderValue 的新实例。

NameValueHeaderValue(String, String)

NameValueHeaderValue(StringSegment)

Source:
NameValueHeaderValue.cs
Source:
NameValueHeaderValue.cs
Source:
NameValueHeaderValue.cs

初始化 NameValueHeaderValue 的新实例。

public:
 NameValueHeaderValue(Microsoft::Extensions::Primitives::StringSegment name);
public NameValueHeaderValue (Microsoft.Extensions.Primitives.StringSegment name);
new Microsoft.Net.Http.Headers.NameValueHeaderValue : Microsoft.Extensions.Primitives.StringSegment -> Microsoft.Net.Http.Headers.NameValueHeaderValue
Public Sub New (name As StringSegment)

参数

name
StringSegment

标头名称。

适用于

NameValueHeaderValue(String)

public:
 NameValueHeaderValue(System::String ^ name);
public NameValueHeaderValue (string name);
new Microsoft.Net.Http.Headers.NameValueHeaderValue : string -> Microsoft.Net.Http.Headers.NameValueHeaderValue
Public Sub New (name As String)

参数

name
String

适用于

NameValueHeaderValue(StringSegment, StringSegment)

Source:
NameValueHeaderValue.cs
Source:
NameValueHeaderValue.cs
Source:
NameValueHeaderValue.cs

初始化 NameValueHeaderValue 的新实例。

public:
 NameValueHeaderValue(Microsoft::Extensions::Primitives::StringSegment name, Microsoft::Extensions::Primitives::StringSegment value);
public NameValueHeaderValue (Microsoft.Extensions.Primitives.StringSegment name, Microsoft.Extensions.Primitives.StringSegment value);
new Microsoft.Net.Http.Headers.NameValueHeaderValue : Microsoft.Extensions.Primitives.StringSegment * Microsoft.Extensions.Primitives.StringSegment -> Microsoft.Net.Http.Headers.NameValueHeaderValue
Public Sub New (name As StringSegment, value As StringSegment)

参数

name
StringSegment

标头名称。

value
StringSegment

标头值。

适用于

NameValueHeaderValue(String, String)

public:
 NameValueHeaderValue(System::String ^ name, System::String ^ value);
public NameValueHeaderValue (string name, string value);
new Microsoft.Net.Http.Headers.NameValueHeaderValue : string * string -> Microsoft.Net.Http.Headers.NameValueHeaderValue
Public Sub New (name As String, value As String)

参数

name
String
value
String

适用于