ObjectListFieldCollection 類別

定義

警告

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.

表示 ObjectListField 物件的集合。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

public ref class ObjectListFieldCollection : System::Web::UI::MobileControls::ArrayListCollectionBase, System::Collections::ICollection, System::Web::UI::IStateManager, System::Web::UI::MobileControls::IObjectListFieldCollection
public class ObjectListFieldCollection : System.Web.UI.MobileControls.ArrayListCollectionBase, System.Collections.ICollection, System.Web.UI.IStateManager, System.Web.UI.MobileControls.IObjectListFieldCollection
[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 class ObjectListFieldCollection : System.Web.UI.MobileControls.ArrayListCollectionBase, System.Collections.ICollection, System.Web.UI.IStateManager, System.Web.UI.MobileControls.IObjectListFieldCollection
type ObjectListFieldCollection = class
    inherit ArrayListCollectionBase
    interface IObjectListFieldCollection
    interface ICollection
    interface IEnumerable
    interface IStateManager
[<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 ObjectListFieldCollection = class
    inherit ArrayListCollectionBase
    interface IObjectListFieldCollection
    interface ICollection
    interface IEnumerable
    interface IStateManager
Public Class ObjectListFieldCollection
Inherits ArrayListCollectionBase
Implements ICollection, IObjectListFieldCollection, IStateManager
繼承
ObjectListFieldCollection
屬性
實作

備註

這個類別物件會提供的欄位容器 ObjectList。 存取 FieldsObjectList 屬性會 ObjectListFieldCollection 擷取 物件。

類別的屬性和方法 ObjectListFieldCollection 是 介面的 IObjectListFieldCollection 超集。 該介面的所有屬性和方法,包括繼承自 ASP.NET ICollection 介面的所有屬性和方法,都適用在這裡。 這個類別會提供其他屬性和方法來修改集合。 這些屬性和方法提供標準集合管理功能,例如新增、移除和清除集合。

如果您在Page_Init期間呼叫、、 或 方法來Add變更集合,則會忽略物件清單的FieldsItemsViewMode 屬性的檢視RemoveAt狀態。 RemoveAddAt

屬性

Count
已淘汰.

傳回集合中的項目數。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 ArrayListCollectionBase)
IsReadOnly
已淘汰.

取得值,指出集合是否為唯讀。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 ArrayListCollectionBase)
IsSynchronized
已淘汰.

取得值,指出是否同步處理集合。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 ArrayListCollectionBase)
IsTrackingViewState
已淘汰.

指出集合是否要追蹤其檢視狀態變更。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Item[Int32]
已淘汰.

ObjectListFieldCollection 類別的預設索引子 (Indexer),允許依索引查閱任意功能值。 任何屬性都可依名稱存取。 不過,傳回的值永遠是字串 (若未定義則為 null),而不是型別安全值。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Items
已淘汰.

取得或設定陣列清單物件中的項目集合。 預設值是 Empty。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 ArrayListCollectionBase)
SyncRoot
已淘汰.

傳回集合的 SyncRoot 物件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 ArrayListCollectionBase)

方法

Add(ObjectListField)
已淘汰.

將欄位加入至集合的結尾。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

AddAt(Int32, ObjectListField)
已淘汰.

將欄位加入至索引參數所指定之集合中的位置。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Clear()
已淘汰.

清除集合。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

CopyTo(Array, Int32)
已淘汰.

將集合中的項目複製到從指定索引開頭的陣列。 僅供內部使用。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 ArrayListCollectionBase)
Equals(Object)
已淘汰.

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

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

以單一的 ObjectListItem 物件陣列,傳回指定集合中的項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

GetEnumerator()
已淘汰.

擷取集合的列舉值。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

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

做為預設雜湊函式。

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

取得目前執行個體的 Type

(繼承來源 Object)
IndexOf(ObjectListField)
已淘汰.

傳回欄位的索引。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

IndexOf(String)
已淘汰.

傳回欄位的索引。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

LoadViewState(Object)
已淘汰.

載入先前儲存之檢視狀態至控制項。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
Remove(ObjectListField)
已淘汰.

移除指定的欄位。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

RemoveAt(Int32)
已淘汰.

移除指定之索引處的項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

SaveViewState()
已淘汰.

儲存伺服器控制項檢視狀態的變更,該狀態已變更為 Object。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

SetAll(ObjectListField[])
已淘汰.

ObjectListItem 物件的陣列設定為 ObjectListFieldCollection。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

ToString()
已淘汰.

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

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

指示集合追蹤其檢視狀態的變更。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

明確介面實作

IStateManager.IsTrackingViewState
已淘汰.

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

IStateManager.LoadViewState(Object)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

已淘汰.

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

IStateManager.SaveViewState()
已淘汰.

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

IStateManager.TrackViewState()
已淘汰.

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

擴充方法

Cast<TResult>(IEnumerable)
已淘汰.

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)
已淘汰.

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)
已淘汰.

啟用查詢的平行化作業。

AsQueryable(IEnumerable)
已淘汰.

IEnumerable 轉換成 IQueryable

適用於

另請參閱