次の方法で共有


HostString コンストラクター

定義

オーバーロード

HostString(String)

変更を加えずに新しい HostString を作成します。 この値は Punycode ではなく Unicode であることが必要です。ポートを割り当てることができます。 IPv4 および IPv6 のアドレスが使用でき、ポートを割り当てることもできます。

HostString(String, Int32)

ホストパーツとポート パーツから新しい HostString を作成します。

HostString(String)

ソース:
HostString.cs
ソース:
HostString.cs

変更を加えずに新しい HostString を作成します。 この値は Punycode ではなく Unicode であることが必要です。ポートを割り当てることができます。 IPv4 および IPv6 のアドレスが使用でき、ポートを割り当てることもできます。

public:
 HostString(System::String ^ value);
public HostString (string value);
new Microsoft.AspNetCore.Http.HostString : string -> Microsoft.AspNetCore.Http.HostString
Public Sub New (value As String)

パラメーター

value
String

適用対象

HostString(String, Int32)

ソース:
HostString.cs
ソース:
HostString.cs

ホストパーツとポート パーツから新しい HostString を作成します。

public:
 HostString(System::String ^ host, int port);
public HostString (string host, int port);
new Microsoft.AspNetCore.Http.HostString : string * int -> Microsoft.AspNetCore.Http.HostString
Public Sub New (host As String, port As Integer)

パラメーター

host
String

値は、punycode ではなく Unicode である必要があります。 IPv6 アドレスでは、中かっこを使用する必要があります。

port
Int32

ホスト文字列内のポートを表す正の 0 より大きい値。

適用対象