HttpProductHeaderValue HttpProductHeaderValue HttpProductHeaderValue HttpProductHeaderValue HttpProductHeaderValue Class

Definition

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

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

Constructors

HttpProductHeaderValue(String) HttpProductHeaderValue(String) HttpProductHeaderValue(String) HttpProductHeaderValue(String) HttpProductHeaderValue(String)

Initializes a new instance of the HttpProductHeaderValue class with a product name.

HttpProductHeaderValue(String, String) HttpProductHeaderValue(String, String) HttpProductHeaderValue(String, String) HttpProductHeaderValue(String, String) HttpProductHeaderValue(String, String)

Initializes a new instance of the HttpProductHeaderValue class with a product name and a product version.

Properties

Name Name Name Name Name

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

Version Version Version Version Version

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

Methods

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

Converts a string to an HttpProductHeaderValue instance.

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

Returns a string that represents the current HttpProductHeaderValue object.

TryParse(String, HttpProductHeaderValue) TryParse(String, HttpProductHeaderValue) TryParse(String, HttpProductHeaderValue) TryParse(String, HttpProductHeaderValue) TryParse(String, HttpProductHeaderValue)

Determines whether a string is valid HttpProductHeaderValue information.

See Also