ArrayListStatic: ReadOnly

ReadOnly

Returns an ArrayList object wrapped inside a read-only list.



 Public Function ReadOnly(
	  ByVal List As ArrayList ) As ArrayList

Parameters

List
[ByVal] ArrayList. The ArrayList to wrap.

Return Values

ArrayList -  The read-only ArrayList wrapper around List.

Remarks

Passing the object around provides access to the underlying ArrayList, however, the list cannot be changed in size or content.

Examples

The following example gets a read-only version of an ArrayList.

 Set ReadOnlyList = ArrayList.ReadOnly(OriginalList)
 

See Also

Project CorLib Overview

Class ArrayListStatic Overview