HttpSessionState.LCID 属性

定义

获取或设置当前会话的区域设置标识符 (LCID)。Gets or sets the locale identifier (LCID) of the current session.

public:
 property int LCID { int get(); void set(int value); };
public int LCID { get; set; }
member this.LCID : int with get, set
Public Property LCID As Integer

属性值

指定当前会话的区域性的 CultureInfo 实例。A CultureInfo instance that specifies the culture of the current session.

注解

提供LCID属性是为了与 ASP 的早期版本兼容。The LCID property is provided for compatibility with earlier versions of ASP only. 如果不需要保持与 ASP 页面的向后兼容性, 请LCID改用属性。If you do not need to maintain backward compatibility with ASP pages, use the LCID property instead.

ASP.NET 不会将区域设置标识符存储在会话状态中。ASP.NET does not store the locale identifier in session state. LCID 属性LCID访问属性以获取并设置标识符。The LCID property accesses the LCID property to get and set the identifier.

适用于

另请参阅