Page.LCID Page.LCID Page.LCID Page.LCID Property

定義

針對與頁面關聯的 Thread 物件,設定其地區設定識別項。Sets the locale identifier for the Thread object associated with the page.

public:
 property int LCID { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public int LCID { get; set; }
member this.LCID : int with get, set
Public Property LCID As Integer

屬性值

傳至 Thread 的地區設定識別項。The locale identifier to pass to the Thread.

備註

在大部分的情況下,請勿在程式碼中設定此屬性。In most circumstances, do not set this property in code. 屬性可以在 .aspx 檔案的@ Page指示詞中設定,不過,設定地區設定識別碼的慣用方法是透過使用CultureUICulture屬性。 LCIDThe LCID attribute can be set in the @ Page directive of the .aspx file, however, the preferred method of setting the locale identifier is through the use of the Culture and UICulture properties.

適用於

另請參閱