WebUtils.CombineVirtualPaths Method
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebUtils.CombineVirtualPaths Method

Combines a rooted base path with a relative path.

[Visual Basic]
Public Shared Sub CombineVirtualPaths( _
   ByVal rootPath As String, _
   ByVal relativePath As String _
public static string CombineVirtualPaths(
   string rootPath,
   string relativePath


Must be a path starting with '/'
the path to be combined. May start with basepath Placeholder '~'

Return Value

the combined path


If relativePath starts with '~', rootPath is ignored and '~' resolves to the current AppDomain's application virtual path
If relativePath start with '/', rootPath is ignored and relativePath is returned as-is.

See Also

WebUtils Class | Spring.Util Namespace