ObjectListFieldCollection ObjectListFieldCollection ObjectListFieldCollection ObjectListFieldCollection Class

定义

警告

此 API 现已过时。

表示 ObjectListField 对象集合。Represents a collection of ObjectListField objects. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see 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
[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
Public Class ObjectListFieldCollection
Inherits ArrayListCollectionBase
Implements ICollection, IObjectListFieldCollection, IStateManager
继承
ObjectListFieldCollectionObjectListFieldCollectionObjectListFieldCollectionObjectListFieldCollection
属性
实现

注解

此类对象为的字段ObjectList提供容器。This class object provides the container for the fields of an ObjectList. 访问的ObjectList ObjectListFieldCollection属性将检索对象。 FieldsAccessing the Fields property of an ObjectList retrieves an ObjectListFieldCollection object.

ObjectListFieldCollection类的属性和方法是IObjectListFieldCollection接口的超集。The properties and methods of the ObjectListFieldCollection class are a superset of the IObjectListFieldCollection interface. 此接口的所有属性和方法(包括从 ASP.NET ICollection接口继承的属性和方法)都适用于此处。All properties and methods of that interface, including those that it inherits from the ASP.NET ICollection interface, are applicable here. 此类提供了用于修改集合的其他属性和方法。This class provides additional properties and methods to modify the collection. 这些属性和方法提供标准的集合管理功能,例如添加、删除和清除集合。These properties and methods provide standard collection management capability, such as adding, removing, and clearing the collection.

如果在 Page_Init 过程Add中通过调用方法RemoveAddAt、或RemoveAt更改集合,则将忽略对象列表的FieldsItemsViewMode属性的视图状态。.If you change the collection by calling the methods Add, AddAt, Remove, or RemoveAt during Page_Init, the view state for the Fields, Items, and ViewMode properties of the object list is ignored.

属性

Count Count Count Count

返回集合中元素的数目。Returns the number of elements in a collection. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from ArrayListCollectionBase)
IsReadOnly IsReadOnly IsReadOnly IsReadOnly

获取一个值,该值指示集合是否为只读。Gets a value indicating whether a collection is read-only. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from ArrayListCollectionBase)
IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取一个值,该值指示集合是否已同步。Gets a value indicating whether a collection is synchronized. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from ArrayListCollectionBase)
IsTrackingViewState IsTrackingViewState IsTrackingViewState IsTrackingViewState

指示集合是否跟踪其视图状态的更改。Indicates whether the collection tracking its view state changes. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Items Items Items Items

获取或设置数组列表对象中的项的集合。Gets or sets the collection of items in an array list object. 默认值为 EmptyThe default value is Empty. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from ArrayListCollectionBase)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

ObjectListFieldCollection 类的默认索引器,允许根据索引查找任意功能值。The default indexer for the ObjectListFieldCollection class, allows the lookup of arbitrary capability values by index. 可按名称访问任何属性。Any of the properties can be accessed by name. 但是,返回值将始终为字符串(如果未定义,则为 null),而不是类型安全的值。However, the returned value will always be a string (or null if not defined), rather than a type-safe value. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SyncRoot SyncRoot SyncRoot SyncRoot

返回集合的 SyncRoot 对象。Returns the SyncRoot object for the collection. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from ArrayListCollectionBase)

方法

Add(ObjectListField) Add(ObjectListField) Add(ObjectListField) Add(ObjectListField)

将字段添加到集合的末尾。Adds a field to the end of the collection. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

AddAt(Int32, ObjectListField) AddAt(Int32, ObjectListField) AddAt(Int32, ObjectListField) AddAt(Int32, ObjectListField)

在集合中的索引参数指定的位置添加字段。Adds a field at the location in the collection specified by the index parameter. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Clear() Clear() Clear() Clear()

清除集合。Clears the collection. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

从给定索引开始,将集合中的项复制到数组中。Copies the items in the collection to an array, starting at the given index. 仅供内部使用。Intended for internal use only. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from ArrayListCollectionBase)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetAll() GetAll() GetAll() GetAll()

ObjectListItem 对象的单个数组的形式返回指定集合中的项。Returns the items in the specified collection as a single array of ObjectListItem objects. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

检索该集合的枚举器。Retrieves an enumerator for the collection. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from ArrayListCollectionBase)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
IndexOf(ObjectListField) IndexOf(ObjectListField) IndexOf(ObjectListField) IndexOf(ObjectListField)

返回字段的索引。Returns the index of a field. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

IndexOf(String) IndexOf(String) IndexOf(String) IndexOf(String)

返回字段的索引。Returns the index of a field. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

LoadViewState(Object) LoadViewState(Object) LoadViewState(Object) LoadViewState(Object)

将先前保存的视图状态加载到控件。Loads the previously saved view state to the control. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(ObjectListField) Remove(ObjectListField) Remove(ObjectListField) Remove(ObjectListField)

移除指定的字段。Removes the specified field. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

移除指定索引处的项。Removes the item at the specified index. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SaveViewState() SaveViewState() SaveViewState() SaveViewState()

将服务器控件的视图状态更改保存到 ObjectSaves the changes to a server control's view state to a Object. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SetAll(ObjectListField[]) SetAll(ObjectListField[]) SetAll(ObjectListField[]) SetAll(ObjectListField[])

ObjectListItem 对象的数组设置为 ObjectListFieldCollectionSets the array of ObjectListItem objects as the ObjectListFieldCollection. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
TrackViewState() TrackViewState() TrackViewState() TrackViewState()

指示集合跟踪其视图状态的更改。Instructs the collection to track changes to its view state. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

显式界面实现

IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState

有关此成员的说明,请参见 IsTrackingViewStateFor a description of this member, see IsTrackingViewState. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object)

有关此成员的说明,请参见 LoadViewState(Object)For a description of this member, see LoadViewState(Object). 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

IStateManager.SaveViewState() IStateManager.SaveViewState() IStateManager.SaveViewState() IStateManager.SaveViewState()

有关此成员的说明,请参见 SaveViewState()For a description of this member, see SaveViewState(). 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

IStateManager.TrackViewState() IStateManager.TrackViewState() IStateManager.TrackViewState() IStateManager.TrackViewState()

有关此成员的说明,请参见 TrackViewState()For a description of this member, see TrackViewState(). 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

安全性

AspNetHostingPermission
用于在宿主环境中进行操作。for operating in a hosted environment. 要求值:InheritanceDemand;权限值:MinimalDemand value: InheritanceDemand; Permission value: Minimal.

适用于

另请参阅