語言

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 &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容器。 存取 Fields 的 ObjectList 屬性會取得一個 ObjectListFieldCollection 物件。

該 ObjectListFieldCollection 類別的屬性與方法是介面的 IObjectListFieldCollection 超集。 該介面的所有屬性與方法,包括從 ASP.NET ICollection 介面繼承的,皆適用於此處。 此類別提供額外的屬性與方法來修改集合。 這些屬性與方法提供標準的集合管理能力,例如新增、移除及清除集合。

如果你在Page_Init中呼叫方法、、、或Add變更集合,物件清單的視圖狀態 AddAtRemoveRemoveAt、、 和屬性會被忽略。 FieldsItemsViewMode

屬性

名稱 Description
Count
已淘汰.

回傳集合中的元素數量。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

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

會獲得一個值,表示集合是否為唯讀。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

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

會得到一個值,表示集合是否同步。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

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

顯示追蹤其檢視狀態的集合是否改變。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

Item[Int32]
已淘汰.

該 ObjectListFieldCollection 類別的預設索引器允許透過索引查詢任意能力值。 任何房產都可以以名稱存取。 然而,回傳的值永遠是字串(或 null 若未定義),而非型別安全值。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

Items
已淘汰.

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

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

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

(繼承來源 ArrayListCollectionBase)

方法

名稱 Description
Add(ObjectListField)
已淘汰.

在集合的末尾新增一個欄位。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

AddAt(Int32, ObjectListField)
已淘汰.

在集合中依索引參數指定的位置新增一個欄位。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

Clear()
已淘汰.

清空了收款。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

CopyTo(Array, Int32)
已淘汰.

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

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

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

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

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

GetEnumerator()
已淘汰.

為集合檢索一個列舉器。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

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

做為預設哈希函式。

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

取得目前實例的 Type。

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

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

IndexOf(String)
已淘汰.

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

LoadViewState(Object)
已淘汰.

將先前儲存的檢視狀態載入控制器。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

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

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

RemoveAt(Int32)
已淘汰.

拿掉位於指定索引處的專案。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

SaveViewState()
已淘汰.

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

SetAll(ObjectListField[])
已淘汰.

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

ToString()
已淘汰.

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

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

指示集合追蹤其檢視狀態的變化。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

明確介面實作

名稱 Description
IStateManager.IsTrackingViewState
已淘汰.

關於此成員的描述,請參見 IsTrackingViewState。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

IStateManager.LoadViewState(Object)

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

已淘汰.

關於此成員的描述,請參見 LoadViewState(Object)。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

IStateManager.SaveViewState()
已淘汰.

關於此成員的描述,請參見 SaveViewState()。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

IStateManager.TrackViewState()
已淘汰.

關於此成員的描述,請參見 TrackViewState()。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

擴充方法

名稱 Description
AsParallel(IEnumerable)
已淘汰.

啟用查詢的平行處理。

AsQueryable(IEnumerable)
已淘汰.

將 IEnumerable 轉換成 IQueryable。

Cast<TResult>(IEnumerable)
已淘汰.

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

OfType<TResult>(IEnumerable)
已淘汰.

根據指定的型別篩選 IEnumerable 的專案。

適用於

另請參閱