Aracılığıyla paylaş


HostAttribute Oluşturucular

Tanım

Aşırı Yüklemeler

HostAttribute(String)

HostAttribute sınıfının yeni bir örneğini başlatır.

HostAttribute(String[])

HostAttribute sınıfının yeni bir örneğini başlatır.

HostAttribute(String)

Kaynak:
HostAttribute.cs

HostAttribute sınıfının yeni bir örneğini başlatır.

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)

Parametreler

host
String

Yönlendirme sırasında kullanılan konak. Ana bilgisayar punycode yerine Unicode olmalıdır ve bağlantı noktası olabilir.

Şunlara uygulanır

HostAttribute(String[])

Kaynak:
HostAttribute.cs

HostAttribute sınıfının yeni bir örneğini başlatır.

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

Parametreler

hosts
String[]

Yönlendirme sırasında kullanılan konaklar. Konaklar punycode yerine Unicode olmalıdır ve bağlantı noktası olabilir. Boş bir koleksiyon, herhangi bir konağın kabul edildiği anlamına gelir.

Şunlara uygulanır