LazyMAPI

The TMAPIContact object represents a contact in a Contacts folder

Unit: MAPIMsgOutlook.pas
Type: Class
Inherited from: TMAPIMessage

Properties inherited from TMAPIProperty

Name Access Type Description MAPI Reference
Active RW Boolean Open/Close the MAPI object.  
ID RO TBytes The ID property returns the unique identifier of the MAPI object. PR_ENTRYID
MAPIObjType RO TMAPIObjType The MAPIObjType property indicates the type of MAPI object. PR_OBJECT_TYPE
MAPIObject RO IMAPIProp Returns native MAPI IMAPIProp interfaced object.  
Properties RO TMAPIPropFields Returns one or all of the fields associated with a MAPI Property object. Each field typically corresponds to a MAPI property.  

Properties inherited from TMAPIMessage

Name Access Type Description MAPI Reference
Access RO ULONG The Access property indicates the operations available to the client for the object. PR_ACCESS
AccessLevel RO ULONG The AccessLevel property indicates the client's access level to the object. PR_ACCESS_LEVEL
ChangeKey RO TBytes Contains a structure that identifies the last change to the object. Microsoft Exchange specific. PR_CHANGE_KEY
CreationTime RO TDateTime Contains the creation date and time of a message. PR_CREATION_TIME
LastModificationTime RO TDateTime Contains the date and time when the object or subobject was last modified. PR_LAST_MODIFICATION_TIME
LastModifierName RO WideString Contains the name of the last mail user to change the Message object. Microsoft Exchange specific. PR_LAST_MODIFIER_NAME
RecordKey RO TBytes Contains a unique binary-comparable identifier for a specific MAPI object. This property facilitates locating references to an object, such as finding its row in a contents table. PR_RECORD_KEY
SearchKey RO TBytes Contains a unique binary-comparable key that identifies an object for a search. PR_SEARCH_KEY
HasAttachments RO Boolean The HasAttachments property indicates whether the Message object contains at least one attachment. PR_HASATTACH
MsgClass RW WideString Contains a text string that identifies the sender-defined message class, such as IPM.Note PR_MESSAGE_CLASS
MsgCodepage RW ULONG Contains the code page that is used for the message. PR_MESSAGE_CODEPAGE
MsgLocaleId RW ULONG Contains the Windows LCID of the end user who created this message. PR_MESSAGE_LOCALE_ID
MsgFlags RO ULONG The MsgFlags property specifies the status of the Message object. PR_MESSAGE_FLAGS
MsgSize RO ULONG Contains the sum, in bytes, of the sizes of all properties on a message object. PR_MESSAGE_SIZE
ParentID RO TBytes Contains the entry identifier (ID) of the folder that contains a message. PR_PARENT_ENTRYID
StoreID RO TBytes Contains the unique entry identifier of the message store where a message resides. PR_STORE_ENTRYID
Signature RO TBytes Contains the mapping signature for named properties of a particular MAPI object. PR_MAPPING_SIGNATURE
StoreSupportMask RO ULONG There is a property present on message objects which indicates what the store supports, and also what that object supports. PR_STORE_SUPPORT_MASK
IsSupportsUnicode RO Boolean Indicates that STORE_UNICODE_OK exists in StoreSupportMask. Indicates that the message store supports Unicode storage.  
SenderName RO WideString Contains the message sender's display name. PR_SENDER_NAME
SenderEmailAddress RO WideString Contains the message sender's e-mail address. PR_SENDER_EMAIL_ADDRESS
SenderAddressType RO WideString Contains the message sender's e-mail address type. PR_SENDER_ADDRTYPE
DisplayTo RO WideString Contains a list of the display names of the primary (To) message recipients, separated by semicolons (;). PR_DISPLAY_TO
DisplayCc RO WideString Contains an ASCII list of the display names of any carbon copy (CC) message recipients, separated by semicolons (;). PR_DISPLAY_CC
DisplayBCc RO WideString Contains an ASCII list of the display names of any blind carbon copy (BCC) message recipients, separated by semicolons (;). PR_DISPLAY_BCC
Subject RW WideString Contains the full subject of a message. PR_SUBJECT
IconIndex RO Integer Contains a number that indicates which icon to use when you display a group of e-mail objects. PR_ICON_INDEX
ConversationTopic RO WideString Contains the topic of the first message in a conversation thread. PR_CONVERSATION_TOPIC
ConversationID RO TBytes Contains a computed value derived from other Conversation-related properties. Microsoft Exchange specific. PR_CONVERSATION_ID
ConversationIndex RO TBytes Contains a binary value that indicates the relative position of this message within a conversation thread. PR_CONVERSATION_INDEX
HasUserFields RO Boolean Indicates that there exists user-defined fields  
ReceivedTime RO TDateTime Contains the date and time when a message was delivered. PR_MESSAGE_DELIVERY_TIME
SubmitTime RO TDateTime Contains the date and time the message sender submitted a message. PR_CLIENT_SUBMIT_TIME
Body RO TMsgBody The Body property returns or sets the text of the message as a string. PR_BODY, PR_HTML, PR_RTF_COMPRESSED
Attachments RO TMsgAttachments The Attachments property returns an TMsgAttachments object.  

Properties

Name Access Type Description MAPI Reference
Account RW WideString Returns or sets a String representing the account for the contact. PR_ACCOUNT
Address RO TContactAddress Returns TContactAddress object representing the physical address for the contact.
Index: TContactPhysicalAddress :

Name Description
olNone Mailing addres
olHome Home address
olBusiness Business address
olOther Other address
 
Anniversary RW TDate Returns or sets a Date indicating the anniversary date for the contact. PR_WEDDING_ANNIVERSARY
AssistantName RW WideString Returns or sets a String representing the name of the person who is the assistant for the contact. PR_ASSISTANT
AssistantTelephoneNumber RW WideString Returns or sets a String representing the telephone number of the person who is the assistant for the contact. PR_ASSISTANT_TELEPHONE_NUMBER
BillingInformation RW WideString Returns or sets a String representing the billing information associated with the Outlook item. PidLidBilling
Birthday RW TDate Returns or sets a Date indicating the birthday for the contact. PR_BIRTHDAY
Business2TelephoneNumber RW WideString Returns or sets a String representing the second business telephone number for the contact. PR_BUSINESS2_TELEPHONE_NUMBER
BusinessAddress RW WideString Returns or sets a String representing the whole, unparsed business address for the contact. PidLidWorkAddress
BusinessAddressCity RW WideString Returns or sets a String representing the city name portion of the business address for the contact. PidLidWorkAddressCity
BusinessAddressCountry RW WideString Returns or sets a String representing the country/region portion of the business address for the contact. PidLidWorkAddressCountry
BusinessAddressCountryCode RW WideString Returns or sets a String representing the country/region code portion of the business address for the contact. PidLidWorkAddressCountryCode
BusinessAddressPostalCode RW WideString Returns or sets a String representing the postal code (zip code) portion of the business address for the contact. PidLidWorkAddressPostalCode
BusinessAddressPostOfficeBox RW WideString Returns or sets a String representing the post office box number portion of the business address for the contact. PidLidWorkAddressPostOfficeBox
BusinessAddressState RW WideString Returns or sets a String representing the state code portion of the business address for the contact. PidLidWorkAddressState
BusinessAddressStreet RW WideString Returns or sets a String representing the street address portion of the business address for the contact. PidLidWorkAddressStreet
BusinessFaxNumber RW WideString Returns or sets a String representing the business fax number for the contact. PR_BUSINESS_FAX_NUMBER
BusinessHomePage RW WideString Returns or sets a String representing the URL of the business Web page for the contact. PR_BUSINESS_HOME_PAGE
PidLidHtml
BusinessTelephoneNumber RW WideString Returns or sets a String representing the first business telephone number for the contact. PR_OFFICE_TELEPHONE_NUMBER
PR_BUSINESS_TELEPHONE_NUMBER
CallbackTelephoneNumber RW WideString Returns or sets a String representing the callback telephone number for the contact. PR_CALLBACK_TELEPHONE_NUMBER
CarTelephoneNumber RW WideString Returns or sets a String representing the car telephone number for the contact. PR_CAR_TELEPHONE_NUMBER
Categories RO TStrings Returns or sets a String representing the categories assigned to the Outlook item. PidNameKeywords
Children RO TStrings Returns or sets a String representing the names of the children of the contact. PR_CHILDRENS_NAMES
Companies RO TStrings Returns or sets a String representing the names of the companies associated with the Outlook item. PidLidCompanies
CompanyMainTelephoneNumber RW WideString Returns or sets a String representing the company main telephone number for the contact. PR_COMPANY_MAIN_PHONE_NUMBER
CompanyName RW WideString Returns or sets a String representing the company name for the contact. PR_COMPANY_NAME
ComputerNetworkName RW WideString Returns or sets a String representing the name of the computer network for the contact. PR_COMPUTER_NETWORK_NAME
ConversationID RO TBytes Returns a TBytes that uniquely identifies a Conversation that the TMAPIContact object belongs to. PR_CONVERSATION_ID
ConversationIndex RO TBytes Returns a TBytes that indicates the relative position of the item PR_CONVERSATION_INDEX
ConversationTopic RO WideString Returns a String representing the topic of the conversation thread of the Outlook item. PR_CONVERSATION_TOPIC
CreationTime RO TDateTime Returns a Date and Time indicating the creation time for the Outlook item. PR_CREATION_TIME
CustomerID RW WideString Returns or sets a String representing the customer ID for the contact. PR_CUSTOMER_ID
Department RW WideString Returns or sets a String representing the department name for the contact. PR_DEPARTMENT_NAME
Email1Address RW WideString Returns or sets a String representing the e-mail address of the first e-mail entry for the contact. PidLidEmail1EmailAddress
Email1AddressType RW WideString Returns or sets a String representing the address type (such as EX or SMTP) of the first e-mail entry for the contact. PidLidEmail1AddressType
Email1DisplayName RW WideString Returns a String representing the display name of the first e-mail address for the contact. PidLidEmail1DisplayName
Email1EntryID RO TBytes Returns a TBytes representing the entry ID of the first e-mail address for the contact. PidLidEmail1OriginalEntryId
Email2Address RW WideString Returns or sets a String representing the e-mail address of the second e-mail entry for the contact. PidLidEmail2EmailAddress
Email2AddressType RW WideString Returns or sets a String representing the address type (such as EX or SMTP) of the second e-mail entry for the contact. PidLidEmail2AddressType
Email2DisplayName RW WideString Returns a String representing the display name of the second e-mail entry for the contact. PidLidEmail2DisplayName
Email2EntryID RO TBytes Returns a TBytes representing the entry ID of the second e-mail entry for the contact. PidLidEmail2EntryId
Email3Address RW WideString Returns or sets a String representing the e-mail address of the third e-mail entry for the contact. PidLidEmail3EmailAddress
Email3AddressType RW WideString Returns or sets a String representing the address type (such as EX or SMTP) of the third e-mail entry for the contact. PidLidEmail3AddressType
Email3DisplayName RW WideString Returns a String representing the display name of the third e-mail entry for the contact. PidLidEmail3DisplayName
Email3EntryID RO TBytes Returns a TBytes representing the entry ID of the third e-mail entry for the contact. PidLidEmail3OriginalEntryId
EmailAddress RO TContactEmailAddress Returns TContactEmailAddress object that represents a Contact Electronic Address. The valid index is olEmail1, olEmail2, olEmail3  
FileAs RW WideString Returns or sets a String indicating the default keyword string assigned to the contact when it is filed. PidLidFileUnder
FirstName RW WideString Returns or sets a String representing the first name for the contact. PR_GIVEN_NAME
FTPSite RW WideString Returns or sets a String representing the FTP site entry for the contact. PR_FTP_SITE
FullName RW WideString Returns or sets a String specifying the whole, unparsed full name for the contact. PR_DISPLAY_NAME
Gender RW TContactGender Returns or sets a TContactGender constant indicating the gender of the contact. PR_GENDER
GovernmentIDNumber RW WideString Returns or sets a String representing the government ID number for the contact. PR_GOVERNMENT_ID_NUMBER
HasPhoto RO Boolean Returns True if a Contacts item has a picture associated with it. PidLidHasPicture
Hobby RW WideString Returns or sets a String representing the hobby for the contact. PR_HOBBIES
Home2TelephoneNumber RW WideString Returns or sets a String representing the second home telephone number for the contact. PR_HOME2_TELEPHONE_NUMBER
HomeAddress RW WideString Returns or sets a String representing the full, unparsed text of the home address for the contact. PidLidHomeAddress
HomeAddressCity RW WideString Returns or sets a String representing the city portion of the home address for the contact. PR_HOME_ADDRESS_CITY
HomeAddressCountry RW WideString Returns or sets a String representing the country/region portion of the home address for the contact. PR_HOME_ADDRESS_COUNTRY
HomeAddressPostalCode RW WideString Returns or sets a String representing the postal code portion of the home address for the contact. PR_HOME_ADDRESS_POSTAL_CODE
HomeAddressPostOfficeBox RW WideString Returns or sets a String the post office box number portion of the home address for the contact. PR_HOME_ADDRESS_POST_OFFICE_BOX
HomeAddressState RW WideString Returns or sets a String representing the state portion of the home address for the contact. PR_HOME_ADDRESS_STATE_OR_PROVINCE
HomeAddressStreet RW WideString Returns or sets a String representing the street portion of the home address for the contact. PR_HOME_ADDRESS_STREET
HomeFaxNumber RW WideString Returns or sets a String representing the home fax number for the contact. PR_HOME_FAX_NUMBER
HomeTelephoneNumber RW WideString Returns or sets a String representing the first home telephone number for the contact. PR_HOME_TELEPHONE_NUMBER
IMAddress RW WideString Returns or sets a String that represents a contact's Microsoft Instant Messenger address. PidLidInstantMessagingAddress
Initials RW WideString Returns or sets a String representing the initials for the contact. PR_INITIALS
InternetFreeBusyAddress RW WideString Returns or sets a String corresponding to the Address box on the Details tab for a contact. PidLidFreeBusyLocation
ISDNNumber RW WideString Returns or sets a String representing the ISDN number for the contact. PR_ISDN_NUMBER
JobTitle RW WideString Returns or sets a String representing the job title for the contact. PR_TITLE
Journal RW Boolean Returns a Boolean that indicates True if the transaction of the contact will be journalized. PidLidAutoLog
Language RW WideString Returns or sets a String that represents the language in which the contact writes messages. PR_LANGUAGE
LastModificationTime RO TDateTime Returns a Date specifying the date and time that the Outlook item. PR_LAST_MODIFICATION_TIME
LastName RW WideString Returns or sets a String representing the last name for the contact. PR_SURNAME
MailingAddress RW WideString Returns or sets a String representing the full, unparsed selected mailing address for the contact. PR_POSTAL_ADDRESS
MailingAddressCity RW WideString Returns or sets a String representing the city name portion of the selected mailing address of the contact. PR_LOCALITY
MailingAddressCountry RW WideString Returns or sets a String representing the country/region code portion of the selected mailing address of the contact. PR_COUNTRY
MailingAddressPostalCode RW WideString Returns or sets a String representing the postal code (zip code) portion of the selected mailing address of the contact. PR_POSTAL_CODE
MailingAddressPostOfficeBox RW WideString Returns or sets a String representing the post office box number portion of the selected mailing address of the contact. PR_POST_OFFICE_BOX
MailingAddressState RW WideString Returns or sets a String representing the state code portion for the selected mailing address of the contact. PR_STATE_OR_PROVINCE
MailingAddressStreet RW WideString Returns or sets a String representing the street address portion of the selected mailing address of the contact. PR_STREET_ADDRESS
ManagerName RW WideString Returns or sets a String representing the manager name for the contact. PR_MANAGER_NAME
MiddleName RW WideString Returns or sets a String representing the middle name for the contact. PR_MIDDLE_NAME
Mileage RW WideString Returns or sets a String representing the mileage for an item. PidLidMileage
MobileTelephoneNumber RW WideString Returns or sets a String representing the mobile telephone number for the contact. PR_CELLULAR_TELEPHONE_NUMBER
Names RW WideString Returns or sets a String representing the name for the contact.
Index:TContactNames
 
NickName RW WideString Returns or sets a String representing the nickname for the contact. PR_NICKNAME
NoAging RW Boolean Returns or sets a Boolean value that is True to not age the Outlook item. PidLidAgingDontAgeMe
OfficeLocation RW WideString Returns or sets a String specifying the specific office location (for example, Building 1 Room 1 or Suite 123) for the contact. PR_OFFICE_LOCATION
OrganizationalIDNumber RW WideString Returns or sets a String representing the organizational ID number for the contact. PR_ORGANIZATIONAL_ID_NUMBER
OtherAddress RW WideString Returns or sets a String representing the other address for the contact. PidLidOtherAddress
OtherAddressCity RW WideString Returns or sets a String representing the city portion of the other address for the contact. PR_OTHER_ADDRESS_CITY
OtherAddressCountry RW WideString Returns or sets a String representing the country/region portion of the other address for the contact. PR_OTHER_ADDRESS_COUNTRY
OtherAddressPostalCode RW WideString Returns or sets a String representing the postal code portion of the other address for the contact. PR_OTHER_ADDRESS_POSTAL_CODE
OtherAddressPostOfficeBox RW WideString Returns or sets a String representing the post office box portion of the other address for the contact. PR_OTHER_ADDRESS_POST_OFFICE_BOX
OtherAddressState RW WideString Returns or sets a String representing the state portion of the other address for the contact. PR_OTHER_ADDRESS_STATE_OR_PROVINCE
OtherAddressStreet RW WideString Returns or sets a String representing the street portion of the other address for the contact. PR_OTHER_ADDRESS_STREET
OtherFaxNumber RW WideString Returns or sets a String representing the other fax number for the contact. PR_PRIMARY_FAX_NUMBER
OtherTelephoneNumber RW WideString Returns or sets a String representing the other telephone number for the contact. PR_OTHER_TELEPHONE_NUMBER
PagerNumber RW WideString Returns or sets a String representing the pager number for the contact. PR_PAGER_TELEPHONE_NUMBER
PersonalHomePage RW WideString Returns or sets a String representing the URL of the personal Web page for the contact. PR_PERSONAL_HOME_PAGE
PrimaryTelephoneNumber RW WideString Returns or sets a String specifying the primary telephone number for the contact. PR_PRIMARY_TELEPHONE_NUMBER
Profession RW WideString Returns or sets a String indicating the profession for the contact. PR_PROFESSION
Professional RW WideString Returns or sets a String indicating the professional properties for the contact.
Index:TContactProfessional
 
RadioTelephoneNumber RW WideString Returns or sets a String indicating the radio telephone number for the contact. PR_RADIO_TELEPHONE_NUMBER
ReferredBy RW WideString Returns or sets a String specifying the referral name entry for the contact. PR_PREFERRED_BY_NAME
ReminderOverrideDefault RW Boolean Returns or sets a Boolean value that is True if the reminder overrides the default reminder behavior for the item. PidLidReminderOverride
ReminderPlaySound RW Boolean Returns or sets a Boolean value that is True if the reminder should play a sound when it occurs for this item. PidLidReminderPlaySound
ReminderSet RW Boolean Returns or sets a Boolean value that is True if a reminder has been set for this item. PidLidReminderSet
ReminderSoundFile RW WideString Returns or sets a String indicating the path and file name of the sound file to play when the reminder occurs for the Outlook item. PidLidReminderFileParameter
ReminderTime RW TDateTime Returns or sets a Date indicating the date and time at which the reminder should occur for the specified item. PidLidReminderTime
SelectedMailingAddress RW TContactPhysicalAddress Returns or sets a TContactPhysicalAddress enumeration indicating the type of the mailing address for the contact. PidLidPostalAddressId
Sensitivity RW TMsgSensitivity Returns or sets a constant in the TMsgSensitivity enumeration indicating the sensitivity for the Outlook item. PR_SENSITIVITY
Size RO ULONG Returns a ULong indicating the size (in bytes) of the Outlook item. PR_MESSAGE_SIZE
Spouse RW WideString Returns or sets a String indicating the spouse/partner name entry for the contact. PR_SPOUSE_NAME
Suffix RW WideString Returns or sets a String indicating the name suffix (such as Jr., III, or Ph.D.) for the specified contact. PR_GENERATION
TaskCompletedDate RW TDateTime Returns or sets a Date value that represents the completion date of the task for this Contact. PidLidTaskDateCompleted
TaskDueDate RW TDateTime Returns or sets a Date value that represents the due date of the task for this Contact. PidLidTaskDueDate
TaskStartDate RW TDateTime Returns or sets a Date value that represents the start date of the task for this PidLidTaskStartDate
TelexNumber RW WideString Returns or sets a String indicating the telex number for the contact. PR_TELEX_NUMBER
Telephones RW WideString Returns or sets a String indicating the phone for the contact.
Index: TContactTelephones
 
Title RW WideString Returns or sets a String indicating the title for the contact. PR_DISPLAY_NAME_PREFIX
ToDoTaskOrdinal RW TDateTime Returns or sets a Date value that represents the ordinal value of the task for the Contact. PidLidToDoOrdinalDate
TTYTDDTelephoneNumber RW WideString Returns or sets a String specifying the TTY/TDD telephone number for the contact. PR_TTYTDD_PHONE_NUMBER
User1 RW WideString Returns or sets a String specifying the first field on the Contacts form intended for miscellaneous use for the contact. PidLidContactUserField1
User2 RW WideString Returns or sets a String specifying the second field on the Contacts form intended for miscellaneous use for the contact. PidLidContactUserField2
User3 RW WideString Returns or sets a String specifying the third field on the Contacts form intended for miscellaneous use for the contact. PidLidContactUserField3
User4 RW WideString Returns or sets a String specifying the fourth field on the Contacts form intended for miscellaneous use for the contact. PidLidContactUserField4
WebPage RW WideString Returns or sets a String indicating the URL of the Web page for the contact. PidLidHtml

Methods

Name Description
CalcFileAs function CalcFileAs: TStrings;
GetBusinessCardDefinition function GetBusinessCardDefinition: TBytes;
GetPhoto function GetPhoto(var Stream: TStream): Boolean;
SetPhoto procedure SetPhoto(Stream: TStream);
   
   
   
   
   
   
   
   
   

The TContactAddress object represents a Contact Physical Address

Unit: MAPIMsgOutlook.pas
Type: Class
Inherited from: TObject

Properties

Name Access Type Description
AddressType RO TContactPhysicalAddress Returns type of Address.
Address RW WideString Returns or sets a String representing the full, unparsed address for the contact.
City RW WideString Returns or sets a String representing the city name portion of the selected address of the contact.
Country RW WideString Returns or sets a String representing the country/region portion of the address for the contact.
PostalCode RW WideString Returns or sets a String representing the postal code portion of the address for the contact.
PostOfficeBox RW WideString Returns or sets a String representing the post office box portion of the address for the contact.
State RW WideString Returns or sets a String representing the state code portion for the selected address of the contact.
Street RW WideString Returns or sets a String representing the street address portion of the selected address of the contact.

The TContactEmailAddress object represents a Contact Electronic Address

Unit: MAPIMsgOutlook.pas
Type: Class
Inherited from: TObject

Properties

Name Access Type Description
Address RW WideString Returns or sets a String representing the e-mail address of e-mail entry for the contact.
AddressType RW WideString Returns or sets a String representing the address type (such as EX or SMTP) of e-mail entry for the contact.
DisplayName RW WideString Returns or sets a String representing the display name of e-mail entry for the contact.
EntryID RO TBytes Returns a TBytes representing the entry ID of  e-mail entry for the contact.

Top


Copyright © 2012 IMIBO
Privacy Statement