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

屬性值

Int32

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.

適用於