Freigeben über


UriHelper.FromAbsolute Methode

Definition

Trennt die angegebene absolute URI-Zeichenfolge in Komponenten. Setzt keine PathBase voraus.

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)

Parameter

uri
String

Eine Zeichenfolgendarstellung des URI.

scheme
String

http, https, etc.

host
HostString

Der Hostteil des URI, der normalerweise im Hostheader enthalten ist. Dies kann den Port umfassen.

path
PathString

Der Teil des Anforderungspfads, der die angeforderte Ressource identifiziert.

query
QueryString

Die Abfrage, falls vorhanden.

fragment
FragmentString

Das Fragment, falls vorhanden.

Gilt für: