Create an iterator over the space using the specified template(s) and settings.
            
| C# | Visual Basic | Visual C++ | J# | 
ISpaceIterator<T> GetSpaceIterator<T>( IQuery<T> query, SpaceIteratorConfig config )
Function GetSpaceIterator(Of T) ( _ query As IQuery(Of T), _ config As SpaceIteratorConfig _ ) As ISpaceIterator(Of T)
generic<typename T> ISpaceIterator<T>^ GetSpaceIterator( IQuery<T>^ query, SpaceIteratorConfig^ config )
- T
 - Type of object to read.
 
- query (IQuery<(Of <(T>)>))
 - The query used for matching.
 
- config (SpaceIteratorConfig)
 - Configuration for new space iterator.
 
A configured space iterator.
| Exception | Condition | 
|---|---|
| InactiveSpaceException | The space is in backup mode and therefore is not active. | 
| SqlQueryException | The query template is an illegal SqlQuery. | 
