共用方式為


UriHelper.GetEncodedPathAndQuery(HttpRequest) 方法

定義

傳回相對 URI。

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ GetEncodedPathAndQuery(Microsoft::AspNetCore::Http::HttpRequest ^ request);
public static string GetEncodedPathAndQuery (this Microsoft.AspNetCore.Http.HttpRequest request);
static member GetEncodedPathAndQuery : Microsoft.AspNetCore.Http.HttpRequest -> string
<Extension()>
Public Function GetEncodedPathAndQuery (request As HttpRequest) As String

參數

request
HttpRequest

用來組合 URI 片段的要求。

傳回

的路徑和查詢 request

適用於