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. LCID屬性可以在中設定@ Page指示詞的.aspx 檔案,不過,設定的地區設定識別碼的慣用的方法是使用CultureUICulture屬性。The 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.

適用於

另請參閱