Page.UICulture Page.UICulture Page.UICulture Page.UICulture Property

定義

針對與頁面關聯的 Thread 物件,設定其使用者介面 (UI) ID。Sets the user interface (UI) ID for the Thread object associated with the page.

public:
 property System::String ^ UICulture { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string UICulture { get; set; }
member this.UICulture : string with get, set
Public Property UICulture As String

屬性值

UI ID。The UI ID.

備註

這個屬性是捷徑CurrentThread屬性。This property is a shortcut for the CurrentThread property. 文化特性是執行中執行緒的屬性The culture is a property of the executing thread

設定UICulture屬性中@ Page .aspx 檔案中的指示詞。Set the UICulture attribute in the @ Page directive in the .aspx file. 當要求網頁時,動態產生的類別會設定這個屬性的值。When the page is requested, the dynamically generated class sets the value of this property. 此外,您可以明確地設定的值UICulture中的屬性globalization 項目Web.config 檔案。In addition, you can also explicitly set the value of the UICulture property in the globalization element of the Web.config file.

適用於

另請參閱