Page.LCID 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
針對與頁面關聯的 Thread 物件,設定其地區設定識別項。
protected:
property int LCID { void set(int value); };
public:
property int LCID { int get(); void set(int value); };
C#
protected int LCID { set; }
C#
[System.ComponentModel.Browsable(false)]
public int LCID { get; set; }
member this.LCID : int
[<System.ComponentModel.Browsable(false)>]
member this.LCID : int with get, set
Protected Property LCID As Integer
Public Property LCID As Integer
傳至 Thread 的地區設定識別項。
- 屬性
在大部分情況下,請勿在程式代碼中設定此屬性。 屬性 LCID
可以在.aspx檔案的 @ Page 指示詞中設定,不過,設定地區設定標識碼的慣用方法是透過使用 Culture 和 UICulture 屬性。
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |