Chili.Opf3 Send comments on this topic.
GetRange Method
See Also 
Chili.Opf3 Namespace > Generic ObjectSet Class : GetRange Method




index
The zero-based ObjectSet index at which the range starts.
count
The number of elements in the range.
Creates a shallow copy of a range of elements in the source ObjectSet.

Syntax

Visual Basic (Declaration) 
Public Function GetRange( _
   ByVal index As Integer, _
   ByVal count As Integer _
) As ObjectSet(Of T)
Visual Basic (Usage)Copy Code
Dim instance As ObjectSet(Of T)
Dim index As Integer
Dim count As Integer
Dim value As ObjectSet(Of T)
 
value = instance.GetRange(index, count)
C# 
public ObjectSet<T> GetRange( 
   int index,
   int count
)
Managed Extensions for C++ 
public: ObjectSet<T>* GetRange( 
   int index,
   int count
) 
C++/CLI 
public:
ObjectSet<T>^ GetRange( 
   int index,
   int count
) 

Parameters

index
The zero-based ObjectSet index at which the range starts.
count
The number of elements in the range.

Return Value

A shallow copy of a range of elements in the source ObjectSet.

Exceptions

ExceptionDescription
ArgumentExceptionIndex and count do not denote a valid range of elements in the ObjectSet.
ArgumentOutOfRangeExceptionIndex is less than zero or count is less than zero.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also