Click or drag to resize
SiteInfoProviderGetSiteNameFromUrl Method (String, String)

Note: This API is now obsolete.

Returns site name from url.

Namespace: CMS.SiteProvider
Assembly: CMS.SiteProvider (in CMS.SiteProvider.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("This method is obsolete. Use GetSiteNameFromUrl(string) instead.")]
public static string GetSiteNameFromUrl(
	string url,
	string appPath
)

Parameters

url
Type: SystemString
Url
appPath
Type: SystemString
Application path.

Return Value

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