System.Web.VirtualPathUtility.ToAbsolute Method

Converts a virtual path to an application absolute path using the specified application path.

Syntax

public static string ToAbsolute (string virtualPath, string applicationPath)

Parameters

virtualPath
The virtual path to convert to an application-relative path.
applicationPath
The application path to use to convert virtualPath to a relative path.

Returns

The absolute virtual path representation of virtualPath.

Remarks

The VirtualPathUtility.ToAbsolute(string, string) overload of the erload:System.Web.VirtualPathUtility.ToAbsolute method uses the supplied application path rather than the current application path.

If virtualPath is:

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0