GetAppPathForPath Method

UserMapPath.GetAppPathForPath Method (String, String)

.NET Framework (current version)
 

Returns the virtual directory name that is associated with a specific site.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public string GetAppPathForPath(
	string siteID,
	string path
)

Parameters

siteID
Type: System.String

A unique identifier for the site.

path
Type: System.String

The URL that is associated with the site.

Return Value

Type: System.String

The siteID value must be unique. The siteID value distinguishes sites that have the same name.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft