Delete RasEntryCollection Item

Oct 24, 2010 at 7:37 PM

Hi,

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;

Cheers!

Sjoerd

Coordinator
Oct 24, 2010 at 8: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

Coordinator
Oct 24, 2010 at 8: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 9:56 AM

Jeff,

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.

Cheers,

Sjoerd