Dela via


HostString.FromUriComponent Method

Definition

Overloads

FromUriComponent(String)

Creates a new HostString from the given URI component. Any punycode will be converted to Unicode.

FromUriComponent(Uri)

Creates a new HostString from the host and port of the give Uri instance. Punycode will be converted to Unicode.

FromUriComponent(String)

Source:
HostString.cs
Source:
HostString.cs
Source:
HostString.cs

Creates a new HostString from the given URI component. Any punycode will be converted to Unicode.

public:
 static Microsoft::AspNetCore::Http::HostString FromUriComponent(System::String ^ uriComponent);
public static Microsoft.AspNetCore.Http.HostString FromUriComponent (string uriComponent);
static member FromUriComponent : string -> Microsoft.AspNetCore.Http.HostString
Public Shared Function FromUriComponent (uriComponent As String) As HostString

Parameters

uriComponent
String

The URI component string to create a HostString from.

Returns

The HostString that was created.

Applies to

FromUriComponent(Uri)

Source:
HostString.cs
Source:
HostString.cs
Source:
HostString.cs

Creates a new HostString from the host and port of the give Uri instance. Punycode will be converted to Unicode.

public:
 static Microsoft::AspNetCore::Http::HostString FromUriComponent(Uri ^ uri);
public static Microsoft.AspNetCore.Http.HostString FromUriComponent (Uri uri);
static member FromUriComponent : Uri -> Microsoft.AspNetCore.Http.HostString
Public Shared Function FromUriComponent (uri As Uri) As HostString

Parameters

uri
Uri

The Uri to create a HostString from.

Returns

The HostString that was created.

Applies to