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: 12.0.0
Syntax
C#
public static void ValidateCulture(
	SiteNameOnDemand siteName,
	ViewModeOnDemand viewMode,
	PreferredCultureOnDemand culture,
	UrlRewritingAction action
)

Parameters

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