Removes the first occurrence of a specific object from the
ObjectSet
to the
RemovedList.
All objects on the
RemovedList are deleted
when the changes on the
ObjectSet are persisted.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function Remove( _
ByVal item As T _
) As Boolean |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectSet(Of T)
Dim item As T
Dim value As Boolean
value = instance.Remove(item)
|
| C# | |
|---|
public bool Remove(
T item
) |
| Managed Extensions for C++ | |
|---|
public: bool Remove(
T item
) |
| C++/CLI | |
|---|
public:
bool Remove(
T item
) |
Parameters
- item
- The object to remove from the ObjectSet.
Return Value
True, if item was successfully removed from the
ObjectSet; otherwise, false.
This method also returns false if item was not found in the original
ObjectSet.
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also