HostingEnvironment.SetCultures Method (String)
.NET Framework (current version)
Sets the current thread to the culture of the specified virtual path.
Assembly: System.Web (in System.Web.dll)
Parameters
- virtualPath
-
Type:
System.String
The path that contains the culture information.
Return Value
Type: System.IDisposableAn IDisposable object that represents the culture prior to changing; this object can be used to revert to the previous culture.
The SetCultures method sets the current thread to the culture that results after applying all elements in the configuration files affecting the specified virtual path.
.NET Framework
Available since 2.0
Available since 2.0
Show: