共用方式為


HostHeaderValue(String, Nullable<Int32>) 建構函式

定義

初始化 HostHeaderValue 結構的新執行個體。

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))

參數

host
String

主機的位址。

port
Nullable<Int32>

主機正在接聽的選擇性 TCP 通訊埠號碼。

適用於