Share via


IHostMetadata.Hosts 属性

定义

返回路由期间使用的主机的只读集合。 主机将是 Unicode 而不是 punycode,并且可能具有端口。 空集合意味着将接受任何主机。

public:
 property System::Collections::Generic::IReadOnlyList<System::String ^> ^ Hosts { System::Collections::Generic::IReadOnlyList<System::String ^> ^ get(); };
public System.Collections.Generic.IReadOnlyList<string> Hosts { get; }
member this.Hosts : System.Collections.Generic.IReadOnlyList<string>
Public ReadOnly Property Hosts As IReadOnlyList(Of String)

属性值

适用于