HostAttribute 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于提供路由期间使用的主机 metdata 的属性。
public ref class HostAttribute sealed : Attribute, Microsoft::AspNetCore::Routing::IHostMetadata
	[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class HostAttribute : Attribute, Microsoft.AspNetCore.Routing.IHostMetadata
	[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type HostAttribute = class
    inherit Attribute
    interface IHostMetadata
	Public NotInheritable Class HostAttribute
Inherits Attribute
Implements IHostMetadata
		- 继承
 - 
				HostAttribute
 
- 属性
 
- 实现
 
构造函数
| HostAttribute(String) | 
		 初始化 HostAttribute 类的新实例。  | 
        	
| HostAttribute(String[]) | 
		 初始化 HostAttribute 类的新实例。  | 
        	
属性
| Hosts | 
		 返回路由期间使用的主机的只读集合。 主机将是 Unicode 而不是 punycode,并且可能具有端口。 空集合意味着将接受任何主机。  | 
        	
方法
| ToString() | 
		 用于提供路由期间使用的主机 metdata 的属性。  |