HostString 생성자

정의

오버로드

HostString(String)

수정하지 않고 새 HostString을 만듭니다. 값은 punycode가 아니라 유니코드여야 하며 포트를 포함할 수 있습니다. IPv4 및 IPv6 주소도 허용되며 포트를 포함할 수 있습니다.

HostString(String, Int32)

호스트 및 포트 파트에서 새 HostString을 만듭니다.

HostString(String)

Source:
HostString.cs
Source:
HostString.cs

수정하지 않고 새 HostString을 만듭니다. 값은 punycode가 아니라 유니코드여야 하며 포트를 포함할 수 있습니다. 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)

Source:
HostString.cs
Source:
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가 아닌 유니코드여야 합니다. IPv6 주소는 정사각형 중괄호를 사용해야 합니다.

port
Int32

호스트 문자열의 포트를 나타내는 0보다 큰 양의 값입니다.

적용 대상