The Add method create a new member of a distribution list.
objMembers.Add( Identifier [, createFlag] )
Applies To : Members
||In / Out
||Required / Optional
||It is the PR_ENTRYID
of the contact or the distribution list you want to add. You can get this
information by the ID property of the contact
or the distribution list.
||Value of type enumCreateFlag specifying the
bitmask that controls the level of duplicate entries. The following flags may be set:
- createNoCheck (default) : Indicates no check is made for duplicate entry
- createCheckDupLoose :
Indicates a loose level should be used for duplicate entry checking, which returns more matches than setting a
strict level with the createCheckDupStrict flag. For example, a provider can define a loose match as any two
entries having the same display name, while defining a strict match as any two entries having the same display
name and messaging address.
- createCheckDupStrict :
Indicates a strict level should be used for duplicate entry checking, which returns fewer matches than setting a
loose level with the createCheckDupLoose flag.
- createReplace :
Indicates that duplicate entries replace existing entries within a container.
Return Value :
If you want to add a contact without adding it to the WAB you must use the
Dim objMyDl, objMyContact