Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

VirtualPathProvider.CombineVirtualPaths Method

Combines a base path with a relative path to return a complete path to a virtual resource.

Namespace: System.Web.Hosting
Assembly: System.Web (in system.web.dll)
'Declaration
Public Overridable Function CombineVirtualPaths ( _
	basePath As String, _
	relativePath As String _
) As String
'Usage
Dim instance As VirtualPathProvider
Dim basePath As String
Dim relativePath As String
Dim returnValue As String

returnValue = instance.CombineVirtualPaths(basePath, relativePath)
public String CombineVirtualPaths (
	String basePath, 
	String relativePath
)
public function CombineVirtualPaths (
	basePath : String, 
	relativePath : String
) : String
Not applicable.

Parameters

basePath

The base path for the application.

relativePath

The path to the virtual resource, relative to the base path.

Return Value

The complete path to a virtual resource.

Use the CombineVirtualPaths method to inspect the contents of a relative path to a virtual resource and perform any modifications required.

The default implementation combines the basePath and relativePath parameters according to standard ASP.NET path processing.

Notes to Inheritors: If you override the default implementation of the CombineVirtualPaths method, you are required to convert any special syntax with the relativePath parameter to a valid virtual path. You are responsible for syntax checking, path validation, and handling malformed input, as well as edge cases for well-formed input. In most cases it will not be necessary to override the default CombineVirtualPaths method. However, if you do need to modify the path, we recommend that you limit your CombineVirtualPaths implementation to modifying tokens specific to your virtual path provider in the relativeUrl parameter, and that you then call the base implementation to perform normal ASP.NET path processing

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.