This project is read-only.

Deleting Phone Book Entries

Jun 9, 2009 at 11:55 PM
Edited Jun 9, 2009 at 11:56 PM

How do you go about deleting a PhoneBook Entry? I tried this:

rasPhoneBook.Entries.Remove("Test Entry");

But it did not work. I saw a method in the API called RasDeleteEntry but it doesn't seem to be available in the build I downloaded today. 




Jun 10, 2009 at 2:43 AM

That's the correct way to remove them, and I just checked the build and it's working just fine.

Are you sure you opened the correct phone book? There are 2 phone books in use by Windows, the all user's profile phone book, and the current user's profile. If you try to remove the entry from the wrong phone book it will return false from that method.

Jun 10, 2009 at 9:37 PM
Edited Jun 10, 2009 at 9:38 PM

 changed it to look like the sample by using the using(RasPhoneBook….) {} statements it started to work.