ObjectListField 類別

定義

警告

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 http://go.microsoft.com/fwlink/?LinkId=157231.

代表 ObjectList ASP.NET 行動控制項的欄位。 此類別無法獲得繼承。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

public ref class ObjectListField sealed : System::Web::UI::IStateManager
[System.Web.UI.MobileControls.PersistName("Field")]
public sealed class ObjectListField : System.Web.UI.IStateManager
[System.Web.UI.MobileControls.PersistName("Field")]
[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 http://go.microsoft.com/fwlink/?LinkId=157231.")]
public sealed class ObjectListField : System.Web.UI.IStateManager
[<System.Web.UI.MobileControls.PersistName("Field")>]
type ObjectListField = class
    interface IStateManager
[<System.Web.UI.MobileControls.PersistName("Field")>]
[<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 http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type ObjectListField = class
    interface IStateManager
Public NotInheritable Class ObjectListField
Implements IStateManager
繼承
ObjectListField
屬性
實作

範例

如需完整範例,請參閱概 ObjectList 觀。

備註

欄位的類型為 ObjectListField。 當您想要顯示多個字段時,您可以為物件清單中的每個專案指定多個字段。 若要在 宣告 ObjectList內建立欄位,請將 宣告 ObjectListField<Field> 專案。 每個欄位都會與屬性名稱相關聯。 當清單項目系結至數據物件時,每個欄位都會系結至對象的對應屬性。

ObjectList提供三種方式來定義欄位:

  • 以宣告方式,方法是在物件清單中使用 <Field> 子專案

  • 以程序設計方式,方法是建構 ObjectListField 物件,並將其新增至 控件的 Fields 成員集合

  • 自動,方法是將 AutoGenerateFields 屬性設定為 true

建構函式

ObjectListField()
已淘汰.

建立 ObjectListField 類別的新執行個體。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

屬性

DataField
已淘汰.

取得或設定從中繫結資料的屬性名稱。 必須設定這個值,才能進行資料繫結 (Data Binding)。 預設值為空字串 ("")。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

DataFormatString
已淘汰.

取得或設定在格式化資料繫結值時所要使用的格式化字串。 預設為空字串 ("")。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Name
已淘汰.

取得或設定指定之物件的名稱。 預設值為空字串 ("")。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Title
已淘汰.

取得或設定指定之欄位的標題。 預設值是空的 string。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Visible
已淘汰.

取得或設定值,指出是否要呈現指定的控制項。 預設值是 true。 如果 Visible 屬性設定為 false,就不會呈現控制項和其子系。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

方法

DataBindItem(Int32, ObjectListItem)
已淘汰.

將指定項目的欄位繫結至對應的資料。 由 ASP.NET 內部呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IStateManager.IsTrackingViewState
已淘汰.

如需這個成員的說明,請參閱 IsTrackingViewState。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

IStateManager.LoadViewState(Object)
已淘汰.

如需這個成員的說明,請參閱 LoadViewState(Object)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

IStateManager.SaveViewState()
已淘汰.

如需這個成員的說明,請參閱 SaveViewState()。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

IStateManager.TrackViewState()
已淘汰.

如需這個成員的說明,請參閱 TrackViewState()。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

適用於

另請參閱