Partilhar via


UriHelper.FromAbsolute Método

Definição

Separa a cadeia de caracteres de URI absoluta fornecida em componentes. Pressupõe que não há PathBase.

public:
 static void FromAbsolute(System::String ^ uri, [Runtime::InteropServices::Out] System::String ^ % scheme, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::HostString % host, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % path, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::QueryString % query, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::FragmentString % fragment);
public static void FromAbsolute (string uri, out string scheme, out Microsoft.AspNetCore.Http.HostString host, out Microsoft.AspNetCore.Http.PathString path, out Microsoft.AspNetCore.Http.QueryString query, out Microsoft.AspNetCore.Http.FragmentString fragment);
static member FromAbsolute : string * string * HostString * PathString * QueryString * FragmentString -> unit
Public Sub FromAbsolute (uri As String, ByRef scheme As String, ByRef host As HostString, ByRef path As PathString, ByRef query As QueryString, ByRef fragment As FragmentString)

Parâmetros

uri
String

Uma representação de cadeia de caracteres do uri.

scheme
String

http, https etc.

host
HostString

A parte do host do uri normalmente incluída no cabeçalho Host. Isso pode incluir a porta.

path
PathString

A parte do caminho da solicitação que identifica o recurso solicitado.

query
QueryString

A consulta, se houver.

fragment
FragmentString

O fragmento, se houver.

Aplica-se a