Removes a range of elements from the
ObjectSet.
They are moved to the
RemovedList.
All objects on the
RemovedList are deleted
when the changes on the
ObjectSet are persisted.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Sub RemoveRange( _
ByVal index As Integer, _
ByVal count As Integer _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectSet(Of T)
Dim index As Integer
Dim count As Integer
instance.RemoveRange(index, count)
|
| C# | |
|---|
public void RemoveRange(
int index,
int count
) |
| Managed Extensions for C++ | |
|---|
public: void RemoveRange(
int index,
int count
) |
| C++/CLI | |
|---|
public:
void RemoveRange(
int index,
int count
) |
Parameters
- index
- The zero-based starting index of the range of elements to remove.
- count
- The number of elements to remove.
Exceptions
| Exception | Description |
| ArgumentOutOfRangeException | Index is less then zero or count is less
then zero. |
| ArgumentException | Index and count do not denote a valid range of elements
in the ObjectSet. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also