Share via


NameValueHeaderValue Constructor (String, String)

Initializes a new instance of the NameValueHeaderValue class.

Namespace:  System.Net.Http.Headers
Assembly:  System.Net.Http (in System.Net.Http.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    value As String _
)
'Usage
Dim name As String 
Dim value As String 

Dim instance As New NameValueHeaderValue(name, value)
public NameValueHeaderValue(
    string name,
    string value
)
public:
NameValueHeaderValue(
    String^ name, 
    String^ value
)
new : 
        name:string * 
        value:string -> NameValueHeaderValue
public function NameValueHeaderValue(
    name : String, 
    value : String
)

Parameters

See Also

Reference

NameValueHeaderValue Class

NameValueHeaderValue Overload

System.Net.Http.Headers Namespace