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.SiteProviderAssembly: CMS.SiteProvider (in CMS.SiteProvider.dll) Version: 12.0.0
Syntax 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:
Booleantrue if is culture is allowed; otherwise,
false.
See Also