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

在 .aspx 檔案的@ Page指示詞中設定屬性。UICultureSet 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. 此外,您也可以在 web.config 檔案的UICulture 全球化元素中明確設定屬性的值。In addition, you can also explicitly set the value of the UICulture property in the globalization element of the Web.config file.

適用於

另請參閱