Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Remove item from generic list

Posted on 2013-10-31
2
Medium Priority
?
467 Views
Last Modified: 2013-10-31
Hi

I am trying to remove an item from a generic list, I have been using the code below but it does not remove the item.

 _oM04_UserManager = New M04_UserManager
                Dim oM04_UserList As List(Of M04_User)
                oM04_UserList = _oM04_UserManager.GetAllUsersForAllCompanies(_userId)
                oM04_UserList.RemoveAll(Function(p As M04_User) p.UserID = "5833aeb8-13e7-44e5-b60d-600395f5cdab")

Would be grateful for any advice

Thanks
0
Comment
Question by:Soluga
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 45

Accepted Solution

by:
AndyAinscow earned 2000 total points
ID: 39613982
Does the list actually have an item with that exact ID ?
0
 
LVL 1

Author Closing Comment

by:Soluga
ID: 39614108
Doh!

Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question