Create an iterator over the space using the specified template(s) and settings.

C# | Visual Basic | Visual C++ | J# |
[ObsoleteAttribute("Use GetSpaceIterator<T>(ICollection<T> templates, SpaceIteratorConfig config) instead.")] ISpaceIterator<T> GetSpaceIterator<T>( ICollection<T> templates, IteratorScope iteratorScope, int bufferSize, long leaseTime )
<ObsoleteAttribute("Use GetSpaceIterator<T>(ICollection<T> templates, SpaceIteratorConfig config) instead.")> _ Function GetSpaceIterator(Of T) ( _ templates As ICollection(Of T), _ iteratorScope As IteratorScope, _ bufferSize As Integer, _ leaseTime As Long _ ) As ISpaceIterator(Of T)
[ObsoleteAttribute(L"Use GetSpaceIterator<T>(ICollection<T> templates, SpaceIteratorConfig config) instead.")] generic<typename T> ISpaceIterator<T>^ GetSpaceIterator( ICollection<T>^ templates, IteratorScope iteratorScope, int bufferSize, long long leaseTime )

- T
- Type of object to read.

- templates (ICollection<(Of <(T>)>))
- The template used for matching.
- iteratorScope (IteratorScope)
- Scope for iterator matching.
- bufferSize (Int32)
- The maximum number of objects to pool each time from the space.
- leaseTime (Int64)
- The requested initial lease time on the resulting match set

A configured space iterator.

Exception | Condition |
---|---|
InactiveSpaceException | The space is in backup mode and therefore is not active. |