UrlPrefix.Create Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
- 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
Parameters
Returns
Applies to
- 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
Parameters
- scheme
- String
http or https. Will be normalized to lower case.
- host
- String
+, *, IPv4, [IPv6], or a dns name. Http.Sys does not permit punycode (xn--), use Unicode instead.
- path
- String
Should start and end with a '/', though a missing trailing slash will be added. This value must be un-escaped.
Returns
Applies to
- 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
Parameters
- scheme
- String
http or https. Will be normalized to lower case.
- host
- String
+, *, IPv4, [IPv6], or a dns name. Http.Sys does not permit punycode (xn--), use Unicode instead.
- port
- String
If empty, the default port for the given scheme will be used (80 or 443).
- path
- String
Should start and end with a '/', though a missing trailing slash will be added. This value must be un-escaped.