Retrieve the DataObject from the collection using the specified index.
| C# | Visual Basic | Visual C++ |
public DataObject this[ int i ] { get; }
Public ReadOnly Default Property Item ( _ i As Integer _ ) As DataObject
public: property DataObject^ default[int i] { DataObject^ get (int i); }
- i (Int32)
- Index in to the collection
If the index is out of bounds (see Count()) this will throw an IndexOutOfBoundsException.
This technique will therefore only READ from the database the first time the cache is empty
thus, if the underlying data changes, there is no implied way of updating the cache other than
refinding.
This will retrieve the indexed data object to a local cached item. Subsequent reads do not
access the database.