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 _
)
[C#]
public static string CombineVirtualPaths(
   string rootPath,
   string relativePath
);

Parameters

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

Return Value

the combined path

Remarks

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