다음을 통해 공유


HostAttribute 생성자

정의

오버로드

HostAttribute(String)

HostAttribute 클래스의 새 인스턴스를 초기화합니다.

HostAttribute(String[])

HostAttribute 클래스의 새 인스턴스를 초기화합니다.

HostAttribute(String)

Source:
HostAttribute.cs

HostAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 HostAttribute(System::String ^ host);
public HostAttribute (string host);
new Microsoft.AspNetCore.Routing.HostAttribute : string -> Microsoft.AspNetCore.Routing.HostAttribute
Public Sub New (host As String)

매개 변수

host
String

라우팅 중에 사용되는 호스트입니다. 호스트는 punycode가 아닌 유니코드여야 하며 포트가 있을 수 있습니다.

적용 대상

HostAttribute(String[])

Source:
HostAttribute.cs

HostAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 HostAttribute(... cli::array <System::String ^> ^ hosts);
public HostAttribute (params string[] hosts);
new Microsoft.AspNetCore.Routing.HostAttribute : string[] -> Microsoft.AspNetCore.Routing.HostAttribute
Public Sub New (ParamArray hosts As String())

매개 변수

hosts
String[]

라우팅 중에 사용되는 호스트입니다. 호스트는 punycode가 아닌 유니코드여야 하며 포트가 있을 수 있습니다. 빈 컬렉션은 모든 호스트가 수락됨을 의미합니다.

적용 대상