HostString 构造函数 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| HostString(String) | 
						 创建无修饰的新 HostString。 该值应采用 Unicode 而不是 punycode 编码,并可以包含端口。 也允许使用 IPv4 和 IPv6 地址,这些地址同样可以包含端口。  | 
        	
| HostString(String, Int32) | 
						 从其主机和端口部件创建新的 HostString。  | 
        	
HostString(String)
- Source:
 - HostString.cs
 
- Source:
 - HostString.cs
 
- Source:
 - HostString.cs
 
创建无修饰的新 HostString。 该值应采用 Unicode 而不是 punycode 编码,并可以包含端口。 也允许使用 IPv4 和 IPv6 地址,这些地址同样可以包含端口。
public:
 HostString(System::String ^ value);
	public HostString (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
 
- 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
 
该值应为 Unicode,而不是 punycode。 IPv6 地址必须使用方括号。
- port
 - Int32
 
一个大于 0 的正值,表示主机字符串中的端口。