System.Web.VirtualPathUtility.ToAbsolute Method

Converts a virtual path to an application absolute path.

Syntax

public static string ToAbsolute (string virtualPath)

Parameters

virtualPath
The virtual path to convert to an application-relative path.

Returns

The absolute path representation of the specified virtual path.

Remarks

An application absolute path is one where the application path is used instead of the root operator (the tilde [~]).

If virtualPath is:

Requirements

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