AddressEntries.Add Method
Adds a new entry to the AddressEntries collection.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Function Add ( _
Type As String, _
Name As Object, _
Address As Object _
) As AddressEntry
'Usage
Dim instance As AddressEntries
Dim Type As String
Dim Name As Object
Dim Address As Object
Dim returnValue As AddressEntry
returnValue = instance.Add(Type, Name, _
Address)
[DispIdAttribute()]
AddressEntry Add(
string Type,
Object Name,
Object Address
)
Parameters
Type
Type: System.StringThe type of the new entry.
Name
Type: System.ObjectThe name of the new entry.
Address
Type: System.ObjectThe address.
Return Value
Type: Microsoft.Office.Interop.Outlook.AddressEntry
An AddressEntry object that represents the new entry.
Remarks
New entries or changes to existing entries are not persisted in the collection until after calling the Update method.