Click or drag to resize

IndexCollection Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
A collection of indexes in a table or transactional repository.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.TransactionalIndexCollection

Namespace:  Telogis.GeoBase.Transactional
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class IndexCollection

The IndexCollection type exposes the following members.

Properties
  NameDescription
Public propertyItem
Returns the Index with the given name from this IndexCollection.
Public propertyNames
Gets a list of the names of the Indexes in this collection.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetIndex
Gets an Index object from this collection specified by name.
Top
Examples
You must use an index when querying a table for records. An IndexCollection object provides the means to select an index by name, from either a table or a transactional repository:
C#
Index idx = myTable.Indexes["myindex"];
Records[] records = idx.Query(...);
or
C#
Index idx = myTransactionalRepository["myindex"];
Records[] records = idx.Query(...);
You can also use the IndexCollection.Names property to list all the indexes in a table (or repository).
C#
// 
// the repository contains these indexes...
// 
IndexCollection ic = myTransactionalRepository.Indexes;
Console.WriteLine("From repository:");
foreach (String name in ic.Names) { Console.WriteLine("\t{0}", name); }

// 
// ...and the table contains these indexes
// 
ic = myTable.Indexes;
Console.WriteLine("From table:");
foreach (String name in ic.Names) { Console.WriteLine("\t{0}", name); }
See Also