Click or drag to resize
CultureSiteInfoProviderIsCultureAllowed Method
Checks if the culture is allowed on the specified site. Ignores the case in the culture comparison (both 'en-US' and 'en-us' are OK).

Namespace: CMS.SiteProvider
Assembly: CMS.SiteProvider (in CMS.SiteProvider.dll) Version: 13.0.131
Syntax
C#
public static bool IsCultureAllowed(
	string culture,
	string siteName
)

Parameters

culture
Type: SystemString
Culture code to check.
siteName
Type: SystemString
Site code name.

Return Value

Type: Boolean
true if is culture is allowed; otherwise, false.
See Also