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)
|
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
| Exception | Description |
| ArgumentException | Index and count do not denote a valid range of elements
in the ObjectSet. |
| ArgumentOutOfRangeException | Index 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