We can use this code sample for deleting all outlook contact using vb.net language, before using this code sample add reference ‘Microsoft.Office.Interop.Outlook’ library
Continue reading Code snippet for deleting all outlook contacts using VB.Net
This code sample can be used for deleting contact from outlook contacts. before using this code sample you need to add reference of ” library.
Continue reading Delete contact from outlook contact folder in .net
If you want to get all members of to,cc, bcc fields from the current outlook compose mail item,then we can use Application.ActiveInspector().CurrentItem object in vsto add-ins.
you can try following code snippt for reading all Recipients information with address, name and we can also get to,cc, bcc fields from the current compose mail item.
Private Sub GetInfo() Dim strTo As String = "" Dim strCC As String = "" Dim strBCC As String = "" Dim _item As Outlook.MailItem = Globals.ThisAddIn.Application.ActiveInspector().CurrentItem strTo = _item.To strCC = _item.CC strBCC = _item.BCC For Each Rec As Outlook.Recipient In _item.Recipients MessageBox.Show("Recipient name : " & Rec.Name) Next End Sub
How to open Outlook contact window in .net
If you want to add new contact information in outlook form vb.net application through outlook contact window, then you can use this code sample.
you need to add a reference to the Microsoft Outlook Object Library.