Share via


HostHeaderValue(String, Nullable<Int32>) Constructor

Definition

Initializes a new instance of the HostHeaderValue struct.

public HostHeaderValue (string host, int? port);
new Microsoft.AspNetCore.HeaderParsing.HostHeaderValue : string * Nullable<int> -> Microsoft.AspNetCore.HeaderParsing.HostHeaderValue
Public Sub New (host As String, port As Nullable(Of Integer))

Parameters

host
String

The address of the host.

port
Nullable<Int32>

The optional TCP port number on which the host is listening.

Applies to