IndexCollection Class | ![]() |
Namespace: Telogis.GeoBase.Transactional
The IndexCollection type exposes the following members.
Name | Description | |
---|---|---|
![]() | Item |
Returns the Index with the given name from this IndexCollection.
|
![]() | Names |
Gets a list of the names of the Indexes in this collection.
|
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TryGetIndex |
Gets an Index object from this collection specified by name.
|
Index idx = myTable.Indexes["myindex"];
Records[] records = idx.Query(...);
Index idx = myTransactionalRepository["myindex"];
Records[] records = idx.Query(...);
// // 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); }