Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpNameValueHeaderValue class

Applies to Windows and Windows Phone

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

Syntax


public ref class HttpNameValueHeaderValue sealed : IStringable

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

Members

The HttpNameValueHeaderValue class has these types of members:

Constructors

The HttpNameValueHeaderValue class has these constructors.

ConstructorDescription
HttpNameValueHeaderValue(String) Initializes a new instance of the HttpNameValueHeaderValue class. with a name.
HttpNameValueHeaderValue(String, String) Initializes a new instance of the HttpNameValueHeaderValue class. with a name and value.

 

Methods

The HttpNameValueHeaderValue class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Parse Converts a string to an HttpNameValueHeaderValue instance.
ToString Returns a string that represents the current HttpNameValueHeaderValue object.
TryParse Determines whether a string is valid HttpNameValueHeaderValue information.

 

Properties

The HttpNameValueHeaderValue class has these properties.

PropertyAccess typeDescription

Name

Read-onlyGets the name used in the HttpNameValueHeaderValue object.

Value

Read/writeGets or sets the value associated with a name used in the HttpNameValueHeaderValue object.

 

Remarks

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

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http.Headers
Windows::Web::Http::Headers [C++]

Metadata

Windows.winmd

See also

Object
IStringable

 

 

Show:
© 2014 Microsoft. All rights reserved.