ObjectListViewMode 列舉

定義

警告

此 API 現已淘汰。

指定物件清單的顯示模式。Specifies the display mode of the object list. 這個類別無法被繼承。This class cannot be inherited. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public enum class ObjectListViewMode
public enum ObjectListViewMode
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum ObjectListViewMode
type ObjectListViewMode = 
Public Enum ObjectListViewMode
繼承
ObjectListViewMode
屬性

欄位

Commands 1

WML 中的命令檢視。Command's view in WML. 這是第一次呈現包含物件清單的頁面時,預設顯示的檢視。This is the default view displayed when the page containing the object list is rendered for the first time. 它會包含項目的標籤 (Label) 欄位,或者當 TableFields 不是空白時,也有可能出現一個資料表,其中的資料行對應至資料表欄位,而資料列對應至項目。It consists of either the label fields of the items, or (when TableFields is not empty) a table with columns corresponding to the table fields and rows corresponding to items. Details 檢視中有更多資訊時,每個顯示 Details 視的項目會呈現超連結 (Hyperlink),而預設是讀做 MoreWhen there is more information in the Details view, a hyperlink for each item displaying the Details view is rendered, by default reading More. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Details 2

詳細資料檢視。Details view. 這個檢視只會為 WML 裝置個別呈現。This view is rendered separately only for WML devices. 它包含具有 ObjectList 命令的功能表,以及顯示 Details 檢視的功能表項目。It consists of a menu with the ObjectList's commands, along with an menu item displaying the Details view. 若為 HTML 裝置,這個檢視會與 Details 檢視結合,其中,詳細資料下方的命令會顯示為超連結。For HTML devices, this view is combined with the Details view, with the commands appearing as hyperlinks below the details. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

List 0

清單檢視。List view. 這個檢視會顯示項目的每一個欄位,包括標題和值。This view displays each field of the item, including title and value. 在 HTML 中,這個檢視會與 Commands 檢視結合,其中,詳細資料下方的命令會顯示為超連結。In HTML, this view is combined with the Commands view, with the commands appearing as hyperlinks below the details. 這個 API 已經過時。This API is obsolete. 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps & Sites with ASP.NET (使用 ASP.NET 來開發行動應用程式與網站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

備註

[顯示模式] 可透過 [ViewMode] 屬性取得。The display mode is available through the ViewMode property. 此列舉型別可讓使用者設定 ObjectList 控制項的目前顯示模式。This enumeration allows the user to set the current display mode of the ObjectList control. 如果您的 ObjectList 具有專案範本,您可以在每個專案中放置一個按鈕、處理按鈕上的 click 事件,然後將 view 模式設定為 [Details] 視圖,以顯示專案詳細資料。If you have an ObjectList with an item template, you can place a button in each item, handle the click event on the button, and set the view mode to the Details view to show the item details.

注意

您必須先選取一個專案,才能將此列舉設定為 CommandsDetails view。You must first select an item before setting this enumeration to Commands or Details view. 嘗試在選取專案之前設定列舉,會擲回例外狀況。An attempt to set the enumeration before selecting an item throws an exception.

適用於

另請參閱