Dela via


NameValueHeaderValue Constructors

Definition

Overloads

NameValueHeaderValue(StringSegment)

Initializes a new instance of NameValueHeaderValue.

NameValueHeaderValue(String)
NameValueHeaderValue(StringSegment, StringSegment)

Initializes a new instance of NameValueHeaderValue.

NameValueHeaderValue(String, String)

NameValueHeaderValue(StringSegment)

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

Initializes a new instance of 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)

Parameters

name
StringSegment

The header name.

Applies to

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)

Parameters

name
String

Applies to

NameValueHeaderValue(StringSegment, StringSegment)

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

Initializes a new instance of 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)

Parameters

name
StringSegment

The header name.

value
StringSegment

The header value.

Applies to

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)

Parameters

name
String
value
String

Applies to