System.Web.Hosting.HostingEnvironment.SetCultures Method

Sets the current thread to the culture specified in the application configuration file.

Syntax

public static IDisposable SetCultures ()

Returns

An IDisposable object that represents the culture prior to changing; this object can be used to revert to the previous culture.

Remarks

The HostingEnvironment.SetCultures method sets the current thread to the culture specified in the globalization element in the application's configuration file.

Requirements

Namespace: System.Web.Hosting
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0