Skip to main content
HttpProductInfoHeaderValue.HttpProductInfoHeaderValue(String) constructor

Applies to Windows and Windows Phone

Initializes a new instance of the HttpProductInfoHeaderValue class with a product comment.

Syntax


var httpProductInfoHeaderValue = new Windows.Web.Http.Headers.HttpProductInfoHeaderValue(productComment);

public HttpProductInfoHeaderValue(
  string productComment
)

Public Sub New (
  productComment As String 
)

public:
HttpProductInfoHeaderValue(
  String^ productComment
)

Parameters

productComment

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The product comment used in the User-Agent HTTP header.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

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

HttpProductInfoHeaderValue
HttpProductInfoHeaderValue(String, String)