共用方式為


UriHelper.FromAbsolute 方法

定義

將指定的絕對 URI 字串分隔成元件。 假設沒有 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)

參數

uri
String

URI 的字串表示。

scheme
String

HTTP、HTTPs 等。

host
HostString

URI 的主機部分通常包含在主機標頭中。 這可能包括埠。

path
PathString

識別所要求資源之要求路徑的部分。

query
QueryString

查詢,如果有的話。

fragment
FragmentString

片段,如果有的話。

適用於