HttpProductHeaderValue Constructors

Definition

Overloads

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.

HttpProductHeaderValue(String)

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

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

Parameters

productName
String

Platform::String

winrt::hstring

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

See also

Applies to

HttpProductHeaderValue(String, String)

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

public:
 HttpProductHeaderValue(Platform::String ^ productName, Platform::String ^ productVersion);
 HttpProductHeaderValue(winrt::hstring const& productName, winrt::hstring const& productVersion);
public HttpProductHeaderValue(string productName, string productVersion);
function HttpProductHeaderValue(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