vbMAPI Outlook/MAPI Code Library
(v1.16.0)

ref: vbMAPI_AddressEntry

On this page you'll find:

Class Description

This object exposes an address book entry which is identified by an MAPI ENTRYID.


Property Get Properties() As vbMAPI_Properties

Exposes a collection of the MAPI properties set on this address entry.  The default member of the vbMAPI_Properties class is Item, therefore in VB you can call vbMAPI_Folder.Properties(PropTag) directly.

Property Get NamedProperties(ByVal PropertySetGUID As String, _
              ByVal ID As Variant, _
              ByVal DataType As EnumMAPIPropDataTypes) As vbMAPI_Property

Provides access to MAPI named properties for this address entry.

PropertySetGUID: A string representation of the property set GUID (e.g. )
ID: The name (string) or property identifier (integer) representing the property to query from the property set.
DataType: The MAPI data type of the property.

Property Get Address() As String

Property Let Address(ByVal RetVal As String)

Returns the value of the MAPI property PR_EMAIL_ADDRESS from this address entry.

Property Get Alias() As String

Property Let Alias(ByVal RetVal As String)

Returns the value of the MAPI property PR_ACCOUNT from this address entry.

Property Get AssistantName() As String

Property Let AssistantName(ByVal RetVal As String)

Returns the value of the MAPI property PR_ASSISTANT from this address entry.

Property Get BusinessTelephoneNumber() As String

Property Let BusinessTelephoneNumber(ByVal RetVal As String)

Returns the value of the MAPI property PR_OFFICE_TELEPHONE_NUMBER from this address entry.

Property Get City() As String

Property Let City(ByVal RetVal As String)

Returns the value of the MAPI property PR_LOCALITY from this address entry.

Property Get Comments() As String

Property Let Comments(ByVal RetVal As String)

Returns the value of the MAPI property PR_COMMENT from this address entry.

Property Get CompanyName() As String

Property Let CompanyName(ByVal RetVal As String)

Returns the value of the MAPI property PR_COMPANY_NAME from this address entry.

Property Get Department() As String

Property Let Department(ByVal RetVal As String)

Returns the value of the MAPI property PR_DEPARTMENT_NAME from this address entry.

Property Get FirstName() As String

Property Let FirstName(ByVal RetVal As String)

Returns the value of the MAPI property PR_GIVEN_NAME from this address entry.

Property Get JobTitle() As String

Property Let JobTitle(ByVal RetVal As String)

Returns the value of the MAPI property PR_TITLE from this address entry.

Property Get LastName() As String

Property Let LastName(ByVal RetVal As String)

Returns the value of the MAPI property PR_SURNAME from this address entry.

Property Get MobileTelephoneNumber() As String

Property Let MobileTelephoneNumber(ByVal RetVal As String)

Returns the value of the MAPI property PR_CELLULAR_TELEPHONE_NUMBER from this address entry.

Property Get OfficeLocation() As String

Property Let OfficeLocation(ByVal RetVal As String)

Returns the value of the MAPI property PR_OFFICE_LOCATION from this address entry.

Property Get StateOrProvince() As String

Property Let StateOrProvince(ByVal RetVal As String)

Returns the value of the MAPI property PR_STATE_OR_PROVINCE from this address entry.

Property Get StreetAddress() As String

Property Let StreetAddress(ByVal RetVal As String)

Returns the value of the MAPI property PR_STREET_ADDRESS from this address entry.

Property Get DisplayType() As EnumAddressDisplayType

Returns the value of the MAPI property PR_DISPLAY_TYPE from this address entry.

Property Get EntryID() As String

Returns the value of the MAPI property PR_ENTRYID from this address entry.

Property Get Name() As String

Property Let Name(ByVal RetVal As String)

Returns the value of the MAPI property PR_DISPLAY_NAME from this address entry.

Property Get SMTPAddress() As String

Property Let SMTPAddress(ByVal RetVal As String)

Returns the value of the MAPI property PR_SMTP_ADDRESS from this address entry.

Property Get AddressType() As String

Property Let AddressType(ByVal RetVal As String)

Returns the value of the MAPI property PR_ADDRTYPE from this address entry.

Property Get SearchKey() As String

Property Let SearchKey(ByVal RetVal As String)

Returns the value of the MAPI property PR_SEARCH_KEY from this address entry.

Property Get ObjectType() As Long

Property Let ObjectType(ByVal RetVal As Long)

Returns the value of the MAPI property PR_OBJECT_TYPE from this address entry.

Property Get MAPIOBJECT() As Variant

Returns the IMAPIProp object associated with this item.

Sub Save()

Commits any changes made to the object.

Sub Details(Optional ByVal ParentWindowHandle As Long)

Displays a modal dialog box that provides detailed info about the vbMAPI_AddressEntry object.

Property Get Members() As vbMAPI_AddressEntries

Returns a vbMAPI_AddressEntries object that represents the collection of members in a distribution list.  Returns Nothing if not a distribution list.

Property Get IsMemberOfDL() As vbMAPI_AddressEntries

Returns a vbMAPI_AddressEntries object that represents the collection of distribution lists that this user is a member of.

Property Get IsDelegateFor() As vbMAPI_AddressEntries

Returns a vbMAPI_AddressEntries object that represents the collection of users that this user can send messages 'on behalf of'.

Property Get Delegates() As vbMAPI_AddressEntries

Returns a vbMAPI_AddressEntries object that represents the collection of users that can send messages 'on behalf of' this user.

Property Get Reports() As vbMAPI_AddressEntries

Returns a vbMAPI_AddressEntries object that represents the collection of users that this user reports to.

Property Get Manager() As vbMAPI_AddressEntry

Returns a vbMAPI_AddressEntry object that represents the user that has been designated the manager of this user.


Enumeration description: EnumAddressDisplayType


AddressDisplayType_User = &H0
AddressDisplayType_DistList = &H1
AddressDisplayType_Forum = &H2
AddressDisplayType_Agent = &H3
AddressDisplayType_Organization = &H4
AddressDisplayType_PrivateDistList = &H5
AddressDisplayType_RemoteUser = &H6