UrlPrefix.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(String)
- Source:
- UrlPrefix.cs
- Source:
- UrlPrefix.cs
- Source:
- UrlPrefix.cs
public:
static Microsoft::AspNetCore::Server::HttpSys::UrlPrefix ^ Create(System::String ^ prefix);
public static Microsoft.AspNetCore.Server.HttpSys.UrlPrefix Create (string prefix);
static member Create : string -> Microsoft.AspNetCore.Server.HttpSys.UrlPrefix
Public Shared Function Create (prefix As String) As UrlPrefix
参数
返回
适用于
Create(String, String, Nullable<Int32>, String)
- Source:
- UrlPrefix.cs
- Source:
- UrlPrefix.cs
- Source:
- UrlPrefix.cs
public:
static Microsoft::AspNetCore::Server::HttpSys::UrlPrefix ^ Create(System::String ^ scheme, System::String ^ host, Nullable<int> portValue, System::String ^ path);
public static Microsoft.AspNetCore.Server.HttpSys.UrlPrefix Create (string scheme, string host, int? portValue, string path);
static member Create : string * string * Nullable<int> * string -> Microsoft.AspNetCore.Server.HttpSys.UrlPrefix
Public Shared Function Create (scheme As String, host As String, portValue As Nullable(Of Integer), path As String) As UrlPrefix
参数
- scheme
- String
http 或 https。 将规范化为小写。
- host
- String
+、*、IPv4、[IPv6]或 dns 名称。 Http.Sys 不允许 punycode (xn--) ,请改用 Unicode。
- path
- String
应以“/”开头和结尾,但将添加缺失的尾部斜杠。 此值必须未转义。
返回
适用于
Create(String, String, String, String)
- Source:
- UrlPrefix.cs
- Source:
- UrlPrefix.cs
- Source:
- UrlPrefix.cs
public:
static Microsoft::AspNetCore::Server::HttpSys::UrlPrefix ^ Create(System::String ^ scheme, System::String ^ host, System::String ^ port, System::String ^ path);
public static Microsoft.AspNetCore.Server.HttpSys.UrlPrefix Create (string scheme, string host, string port, string path);
static member Create : string * string * string * string -> Microsoft.AspNetCore.Server.HttpSys.UrlPrefix
Public Shared Function Create (scheme As String, host As String, port As String, path As String) As UrlPrefix
参数
- scheme
- String
http 或 https。 将规范化为小写。
- host
- String
+、*、IPv4、[IPv6]或 dns 名称。 Http.Sys 不允许 punycode (xn--) ,请改用 Unicode。
- port
- String
如果为空,则将使用给定方案的默认端口 (80 或 443) 。
- path
- String
应以“/”开头和结尾,但将添加缺失的尾部斜杠。 此值必须未转义。