Click or drag to resize
SiteInfoProviderGetSiteNameFromUrl Method
Returns site name from url.

Namespace: CMS.SiteProvider
Assembly: CMS.SiteProvider (in CMS.SiteProvider.dll) Version: 12.0.0
Syntax
C#
public static string GetSiteNameFromUrl(
	string url,
	string appPath = null
)

Parameters

url
Type: SystemString
Url
appPath (Optional)
Type: SystemString
Application path.

Return Value

Type: String
Remarks
If no appPath is provided, value from ApplicationPath is used.
See Also