Removes the first occurrence of a specific object from the
ObjectView
to the connected
ObjectSet'sRemovedList.
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 ObjectView(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 ObjectView.
Return Value
True, if item was successfully removed from the
ObjectView; otherwise, false.
This method also returns false if item was not found in the original
ObjectView.
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also