PathString.FromUriComponent 方法

定义

重载

FromUriComponent(String)

根据给定路径(按 URI 格式转义)返回 PathString。 该字符串不能包含任何非路径值。

FromUriComponent(Uri)

从 Uri 对象返回给定路径的 PathString。 不支持相对 Uri 对象。

FromUriComponent(String)

根据给定路径(按 URI 格式转义)返回 PathString。 该字符串不能包含任何非路径值。

public:
 static Microsoft::AspNetCore::Http::PathString FromUriComponent(System::String ^ uriComponent);
public static Microsoft.AspNetCore.Http.PathString FromUriComponent (string uriComponent);
static member FromUriComponent : string -> Microsoft.AspNetCore.Http.PathString
Public Shared Function FromUriComponent (uriComponent As String) As PathString

参数

uriComponent
String

显示为 URI 格式的转义路径。

返回

生成的 PathString

适用于

FromUriComponent(Uri)

从 Uri 对象返回给定路径的 PathString。 不支持相对 Uri 对象。

public:
 static Microsoft::AspNetCore::Http::PathString FromUriComponent(Uri ^ uri);
public static Microsoft.AspNetCore.Http.PathString FromUriComponent (Uri uri);
static member FromUriComponent : Uri -> Microsoft.AspNetCore.Http.PathString
Public Shared Function FromUriComponent (uri As Uri) As PathString

参数

uri
Uri

Uri 对象

返回

生成的 PathString

适用于