June 2002
Intermediate to advanced
816 pages
28h 12m
English
DataKeyCollection
The DataKeyCollection class contains a
read-only collection of primary field key names as strings. This class is used by the BaseDataList.DataKeys property to facillitate
editing (for example, you can use a unique ID for your key field and use it to build
SQL statements when you need to update a record in response to a user edit operation).
You must specify the data key you want to use in the BaseDataList.DataKeyField
property before you bind the data list.
Public NotInheritable Class DataKeyCollection : Implements ICollection, IEnumerable ' Public Constructors Public Sub New(ByVal keys As System.Collections.ArrayList) ' Public Instance Properties Public ReadOnly Property Count As Integer Implements ICollection.Count Public ReadOnly Property IsReadOnly As Boolean Public ReadOnly Property IsSynchronized As Boolean Implements ICollection.IsSynchronized Public Default ReadOnly Property Item( ByVal index As Integer) As Object Public ReadOnly Property SyncRoot As Object Implements ICollection.SyncRoot ' Public Instance Methods Public Sub CopyTo(ByVal array As Array, ByVal index As Integer) Implements ICollection.CopyTo Public Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator End Class
Read now
Unlock full access