DataPagerFieldCollection Class
TOC
Collapse the table of content
Expand the table of content

DataPagerFieldCollection Class

.NET Framework (current version)
 

Represents a collection of DataPagerField objects that are used by the DataPager control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

System.Object
  System.Web.UI.StateManagedCollection
    System.Web.UI.WebControls.DataPagerFieldCollection

public class DataPagerFieldCollection : StateManagedCollection

NameDescription
System_CAPS_pubmethodDataPagerFieldCollection(DataPager)

Initializes a new instance of the DataPagerFieldCollection class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of elements contained in the StateManagedCollection collection.(Inherited from StateManagedCollection.)

System_CAPS_pubpropertyItem[Int32]

Gets the DataPagerField object that is at the specified index in the collection.

NameDescription
System_CAPS_pubmethodAdd(DataPagerField)

Appends the specified DataPagerField object to the collection.

System_CAPS_pubmethodClear()

Removes all items from the StateManagedCollection collection.(Inherited from StateManagedCollection.)

System_CAPS_pubmethodCloneFields(DataPager)

Creates a copy of the current collection.

System_CAPS_pubmethodContains(DataPagerField)

Determines whether the DataPagerFieldCollection collection contains the specified DataPagerField object.

System_CAPS_pubmethodCopyTo(Array, Int32)

Copies the elements of the StateManagedCollection collection to an array, starting at a particular array index.(Inherited from StateManagedCollection.)

System_CAPS_pubmethodCopyTo(DataPagerField[], Int32)

Copies the complete DataPagerFieldCollection collection to a one-dimensional Array object, starting at the specified index of the target array.

System_CAPS_protmethodCreateKnownType(Int32)

Creates a default instance of the DataPagerField type that is identified by the provided index.(Overrides StateManagedCollection.CreateKnownType(Int32).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an iterator that iterates through the StateManagedCollection collection.(Inherited from StateManagedCollection.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetKnownTypes()

Gets an array of DataPagerField types that the DataPagerFieldCollection collection can contain.(Overrides StateManagedCollection.GetKnownTypes().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(DataPagerField)

Gets the index of a specific DataPagerField object in the collection.

System_CAPS_pubmethodInsert(Int32, DataPagerField)

Inserts the specified DataPagerField object into the DataPagerFieldCollection collection at the specified index.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnClear()

When overridden in a derived class, performs additional work before the Clear method removes all items from the collection.(Inherited from StateManagedCollection.)

System_CAPS_protmethodOnClearComplete()

Performs additional processing after all items are removed from the collection.(Overrides StateManagedCollection.OnClearComplete().)

System_CAPS_protmethodOnInsert(Int32, Object)
System_CAPS_protmethodOnInsertComplete(Int32, Object)

Performs additional processing after an item is added to the collection.(Overrides StateManagedCollection.OnInsertComplete(Int32, Object).)

System_CAPS_protmethodOnRemove(Int32, Object)

When overridden in a derived class, performs additional work before the M:System.Web.UI.StateManagedCollection.System.Collections.IList.Remove(System.Object) or M:System.Web.UI.StateManagedCollection.System.Collections.IList.RemoveAt(System.Int32) method removes the specified item from the collection.(Inherited from StateManagedCollection.)

System_CAPS_protmethodOnRemoveComplete(Int32, Object)

Performs additional processing after an item is removed from the collection.(Overrides StateManagedCollection.OnRemoveComplete(Int32, Object).)

System_CAPS_protmethodOnValidate(Object)

Verifies that the specified object is a DataPagerField object.(Overrides StateManagedCollection.OnValidate(Object).)

System_CAPS_pubmethodRemove(DataPagerField)

Removes the specified DataPagerField object from the DataPagerFieldCollection collection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the DataPagerField object at the specified index from the DataPagerFieldCollection collection.

System_CAPS_pubmethodSetDirty()

Forces the entire StateManagedCollection collection to be serialized into view state. (Inherited from StateManagedCollection.)

System_CAPS_protmethodSetDirtyObject(Object)

Instructs the specified DataPagerField object to record its complete state to view state, instead of recording only changed information.(Overrides StateManagedCollection.SetDirtyObject(Object).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventFieldsChanged

Occurs when the fields in the DataPagerFieldCollection collection change.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

This API supports the product infrastructure and is not intended to be used directly from your code. Returns an iterator that iterates through the StateManagedCollection collection.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Add(Object)

Adds an item to the StateManagedCollection collection.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Clear()

This API supports the product infrastructure and is not intended to be used directly from your code. Removes all items from the StateManagedCollection collection.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Contains(Object)

Determines whether the StateManagedCollection collection contains a specific value.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.IndexOf(Object)

Determines the index of a specified item in the StateManagedCollection collection.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Insert(Int32, Object)

Inserts an item into the StateManagedCollection collection at the specified index.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Remove(Object)

Removes the first occurrence of the specified object from the StateManagedCollection collection.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.RemoveAt(Int32)

Removes the IStateManager element at the specified index.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.LoadViewState(Object)

Restores the previously saved view state of the StateManagedCollection collection and the IStateManager items it contains.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.SaveViewState()

Saves the changes to the StateManagedCollection collection and each IStateManager object it contains since the time the page was posted back to the server.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.TrackViewState()

Causes the StateManagedCollection collection and each of the IStateManager objects it contains to track changes to their view state so they can be persisted across requests for the same page.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.Count

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the number of elements contained in the StateManagedCollection collection.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.IsSynchronized

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value indicating whether the StateManagedCollection collection is synchronized (thread safe). This method returns false in all cases.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.SyncRoot

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an object that can be used to synchronize access to the StateManagedCollection collection. This method returns null in all cases.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.IsFixedSize

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value indicating whether the StateManagedCollection collection has a fixed size. This method returns false in all cases.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.IsReadOnly

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value indicating whether the StateManagedCollection collection is read-only.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.Item[Int32]

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the IStateManager element at the specified index.(Inherited from StateManagedCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIStateManager.IsTrackingViewState

Gets a value indicating whether the StateManagedCollection collection is saving changes to its view state.(Inherited from StateManagedCollection.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

You can use the DataPagerFieldCollection class to programmatically manage a set of DataPagerField objects. Note that it is more typical to define these fields declaratively instead of programmatically.

You can access the properties and methods of the DataPagerFieldCollection class through the DataPager.Fields property. You can add, insert, and remove DataPagerField objects by using the appropriate methods of the DataPagerFieldCollection class. To programmatically retrieve DataPagerField objects from a collection, do one of following:

The Count property gets the total number of items in the collection. It is typically used to determine the upper bound of the collection. You can add items and remove items in the collection by using the Add, Insert, Remove, and RemoveAt methods.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft