Share via


HttpProductInfoHeaderValue Constructors

Definition

Overloads

HttpProductInfoHeaderValue(String)

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

HttpProductInfoHeaderValue(String, String)

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

HttpProductInfoHeaderValue(String)

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

public:
 HttpProductInfoHeaderValue(Platform::String ^ productComment);
 HttpProductInfoHeaderValue(winrt::hstring const& productComment);
public HttpProductInfoHeaderValue(string productComment);
function HttpProductInfoHeaderValue(productComment)
Public Sub New (productComment As String)

Parameters

productComment
String

Platform::String

winrt::hstring

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

See also

Applies to

HttpProductInfoHeaderValue(String, String)

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

public:
 HttpProductInfoHeaderValue(Platform::String ^ productName, Platform::String ^ productVersion);
 HttpProductInfoHeaderValue(winrt::hstring const& productName, winrt::hstring const& productVersion);
public HttpProductInfoHeaderValue(string productName, string productVersion);
function HttpProductInfoHeaderValue(productName, productVersion)
Public Sub New (productName As String, productVersion As String)

Parameters

productName
String

Platform::String

winrt::hstring

The name of the product token used in the User-Agent HTTP header.

productVersion
String

Platform::String

winrt::hstring

The version of the product token used in the User-Agent HTTP header.

See also

Applies to