Click or drag to resize
HttpContextExtensionsSetRequestCulture Method
Stores the cultureCode which should be used by the thread handling the request.

Namespace: Kentico.Web.Mvc.Internal
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public static void SetRequestCulture(
	this IHttpContext httpContext,
	string cultureCode
)

Parameters

httpContext
Type: CMS.Base.InternalIHttpContext
cultureCode
Type: SystemString

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IHttpContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also