HttpProductHeaderValue class

Applies to Windows and Windows Phone

Represents product information used by the HttpProductHeaderValue and HttpProductInfoHeaderValueCollection classes in the User-Agent HTTP header.

Syntax


var httpProductHeaderValue = new Windows.Web.Http.Headers.HttpProductHeaderValue(string);
var httpProductHeaderValue = new Windows.Web.Http.Headers.HttpProductHeaderValue(string, string);

Attributes

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

Members

The HttpProductHeaderValue class has these types of members:

Constructors

The HttpProductHeaderValue class has these constructors.

ConstructorDescription
HttpProductHeaderValue(String) Initializes a new instance of the HttpProductHeaderValue class with a product name.
HttpProductHeaderValue(String, String) Initializes a new instance of the HttpProductHeaderValue class with a product name and a product version.

 

Methods

The HttpProductHeaderValue 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 HttpProductHeaderValue instance.
ToString Returns a string that represents the current HttpProductHeaderValue object.
TryParse Determines whether a string is valid HttpProductHeaderValue information.

 

Properties

The HttpProductHeaderValue class has these properties.

PropertyAccess typeDescription

Name

Read-onlyGets a token that represents the name of the product to be used in the User-Agent HTTP header.

Version

Read-onlyGets a token that represents the version of the product to be used in the User-Agent HTTP header.

 

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

IStringable
Object

 

 

Show:
© 2014 Microsoft