Click or drag to resize
URLRewriterValidateCulture Method
Validates the given culture and modifies it with a valid culture when the given culture was not valid. If not valid, it then chooses the site's default culture and sets it as a preferred culture.

Namespace: CMS.URLRewritingEngine
Assembly: CMS.URLRewritingEngine (in CMS.URLRewritingEngine.dll) Version: 13.0.131
Syntax
C#
public static void ValidateCulture(
	SiteNameOnDemand siteName,
	PreferredCultureOnDemand culture,
	UrlRewritingAction action
)

Parameters

siteName
Type: CMS.SiteProviderSiteNameOnDemand
Site name
culture
Type: CMS.HelpersPreferredCultureOnDemand
Culture to validate
action
Type: CMS.URLRewritingEngineUrlRewritingAction
Rewriting action
See Also