VirtualPathUtility.ToAppRelative Method (String, String)
.NET Framework 3.0
Converts a virtual path to an application-relative path using a specified application path.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public static String ToAppRelative ( String virtualPath, String applicationPath )
public static function ToAppRelative ( virtualPath : String, applicationPath : String ) : String
Not applicable.
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.
Return Value
The application-relative path representation of virtualPath.The ToAppRelative overload of the ToAppRelative method uses applicationPath rather than the current application path. If virtualPath does not start with applicationPath, the ToAppRelative method returns the virtual path unchanged.
Community Additions
ADD
Show: