This project is read-only.

Delete RasEntryCollection Item

Oct 24, 2010 at 8:37 PM


As per the documentation true should be returned when succesfully removed a RAS entry. I have programmed ans debugged this, but it always returns false.

Is this a bug or am I doing something wrong?

var result = phoneBookAllUsers.Entries.Remove(vpnItem.Name);
var result2 = phoneBookUser.Entries.Remove(vpnItem.Name);
if ((result) || (result2)) continu = true;



Oct 24, 2010 at 9:35 PM

Looks like it's a bug with that specific method of removing an entry. If you removed the instance or used RemoveAt it would work. I'll get it logged and fixed. Thanks for reporting it!

- Jeff

Oct 24, 2010 at 9:36 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Oct 25, 2010 at 10:56 AM


It does remove the RAS entry from the phonebook, but in my app I would like to know if it actually did it.

RemoveAt is a void, it does not return errorlevels or anything. 

I will check a new build.