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

通常包含在 Host 标头中的 uri 的主机部分。 这可能包括 端口。

path
PathString

标识所请求资源的请求路径部分。

query
QueryString

查询(如果有)。

fragment
FragmentString

片段(如果有)。

适用于