UrlPrefix.Create 方法

定义

重载

Create(String)

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364698(v=vs.85).aspx

Create(String, String, Nullable<Int32>, String)

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364698(v=vs.85).aspx

Create(String, String, String, String)

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364698(v=vs.85).aspx

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

参数

prefix
String

将从中创建 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。

portValue
Nullable<Int32>

如果为空,则将使用给定方案的默认端口 (80 或 443) 。

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

应以“/”开头和结尾,但将添加缺失的尾部斜杠。 此值必须未转义。

返回

适用于