ArrayList: Version (get)

Version

Returns the current version of the instance.



 Public Property Get Version ( ) As Long

Return Values

Long -  Version count.

Remarks

This is used to track if the list has been modified. Wrappers for an ArrayList may need to keep in sync with the list. An example would be the ArrayListEnumerator. If the list is modified during enumeration, then the enumerator throws an error by checking to see if the version has changed since the enumeration began. Since other objects implement the ArrayList interface and need to be enumerated using the same ArrayListEnumerator, the enumerator cant access a Friend method of ArrayList.

Read Only.

See Also

Project VBCorLib Overview Class ArrayList Overview ArrayList Properties ArrayList Methods TrimToSize