HttpNameValueHeaderValue HttpNameValueHeaderValue HttpNameValueHeaderValue HttpNameValueHeaderValue HttpNameValueHeaderValue Class

Definition

Represents name and value information used in a number of HTTP headers.

public : sealed class HttpNameValueHeaderValue : IStringable, IHttpNameValueHeaderValue
struct winrt::Windows::Web::Http::Headers::HttpNameValueHeaderValue : IStringable, IHttpNameValueHeaderValue
public sealed class HttpNameValueHeaderValue : IStringable, IHttpNameValueHeaderValue
Public NotInheritable Class HttpNameValueHeaderValue Implements IStringable, IHttpNameValueHeaderValue
var httpNameValueHeaderValue = new httpNameValueHeaderValue(name);
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The HttpNameValueHeaderValue class provides support for name/value pairs used in various headers

Constructors

HttpNameValueHeaderValue(String) HttpNameValueHeaderValue(String) HttpNameValueHeaderValue(String) HttpNameValueHeaderValue(String) HttpNameValueHeaderValue(String)

Initializes a new instance of the HttpNameValueHeaderValue class. with a name.

HttpNameValueHeaderValue(String, String) HttpNameValueHeaderValue(String, String) HttpNameValueHeaderValue(String, String) HttpNameValueHeaderValue(String, String) HttpNameValueHeaderValue(String, String)

Initializes a new instance of the HttpNameValueHeaderValue class. with a name and value.

Properties

Name Name Name Name Name

Gets the name used in the HttpNameValueHeaderValue object.

Value Value Value Value Value

Gets or sets the value associated with a name used in the HttpNameValueHeaderValue object.

Methods

Parse(String) Parse(String) Parse(String) Parse(String) Parse(String)

Converts a string to an HttpNameValueHeaderValue instance.

ToString() ToString() ToString() ToString() ToString()

Returns a string that represents the current HttpNameValueHeaderValue object.

TryParse(String, HttpNameValueHeaderValue) TryParse(String, HttpNameValueHeaderValue) TryParse(String, HttpNameValueHeaderValue) TryParse(String, HttpNameValueHeaderValue) TryParse(String, HttpNameValueHeaderValue)

Determines whether a string is valid HttpNameValueHeaderValue information.

See Also