MobilePage.MakePathAbsolute(String) 方法

定义

将指定的相对 URL 转换为绝对 URL。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public:
 System::String ^ MakePathAbsolute(System::String ^ virtualPath);
public string MakePathAbsolute(string virtualPath);
member this.MakePathAbsolute : string -> string
Public Function MakePathAbsolute (virtualPath As String) As String

参数

virtualPath
String

要转换的相对 URL。

返回

对应于指定虚拟路径的绝对路径。

注解

绝对 URL 因是否为无 Cookie 会话管理配置应用程序而异。 无论 Cookie 设置如何,此方法都提供了一种转换应用程序 URL 的单个方法。

适用于

另请参阅