Partager via


ContactItem Object

ContactItem
Multiple objects

Represents a contact in a contacts folder. A contact can represent any person with whom you have any personal or professional contact.

Using the ContactItem Object

Use the CreateItem method to create a ContactItem object that represents a new contact.

The following Visual Basic for Applications (VBA) example returns a new contact.

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olContactItem)

The following Microsoft Visual Basic Scripting Edition (VBScript) example returns a new contact.

Set myItem = Application.CreateItem(olContactItem)

Use Items (index), where index is the index number of a contact or a value used to match the default property of a contact, to return a single ContactItem object from a Contacts folder.

Remarks

If a program tries to reference any type of recipient information by using the Outlook object model, a dialog box is displayed that asks you to confirm access to this information. You can allow access to the Address Book or recipient information for up to ten minutes after you receive the dialog box. This allows features, such as mobile device synchronization, to be completed.

You receive the confirmation dialog box when a solution tries to programmatically access the following properties of the ContactItem object:

  • Email1Address
  • Email1AddressType
  • Email1DisplayName
  • Email1EntryID
  • Email2Address
  • Email2AddressType
  • Email2DisplayName
  • Email2EntryID
  • Email3Address
  • Email3AddressType
  • Email3DisplayName
  • Email3EntryID
  • NetMeetingAlias
  • ReferredBy
  • IMAddress
  • Body

Properties | Account Property | Actions Property | Anniversary Property | Application Property | AssistantName Property | AssistantTelephoneNumber Property | Attachments Property | AutoResolvedWinner Property | BillingInformation Property | Birthday Property | Body Property | Business2TelephoneNumber Property | BusinessAddress Property | BusinessAddressCity Property | BusinessAddressCountry Property | BusinessAddressPostalCode Property | BusinessAddressPostOfficeBox Property | BusinessAddressState Property | BusinessAddressStreet Property | BusinessFaxNumber Property | BusinessHomePage Property | BusinessTelephoneNumber Property | CallbackTelephoneNumber Property | CarTelephoneNumber Property | Categories Property | Children Property | Class Property | Companies Property | CompanyAndFullName Property | CompanyLastFirstNoSpace Property | CompanyLastFirstSpaceOnly Property | CompanyMainTelephoneNumber Property | CompanyName Property | ComputerNetworkName Property | Conflicts Property | ConversationIndex Property | ConversationTopic Property | CreationTime Property | CustomerID Property | Department Property | DownloadState Property | Email1Address Property | Email1AddressType Property | Email1DisplayName Property | Email1EntryID Property | Email2Address Property | Email2AddressType Property | Email2DisplayName Property | Email2EntryID Property | Email3Address Property | Email3AddressType Property | Email3DisplayName Property | Email3EntryID Property | EntryID Property | FileAs Property | FirstName Property | FormDescription Property | FTPSite Property | FullName Property | FullNameAndCompany Property | Gender Property | GetInspector Property | GovernmentIDNumber Property | HasPicture Property | Hobby Property | Home2TelephoneNumber Property | HomeAddress Property | HomeAddressCity Property | HomeAddressCountry Property | HomeAddressPostalCode Property | HomeAddressPostOfficeBox Property | HomeAddressState Property | HomeAddressStreet Property | HomeFaxNumber Property | HomeTelephoneNumber Property | IMAddress Property | Importance Property | Initials Property | InternetFreeBusyAddress Property | IsConflict Property | ISDNNumber Property | ItemProperties Property | JobTitle Property | Journal Property | Language Property | LastFirstAndSuffix Property | LastFirstNoSpace Property | LastFirstNoSpaceAndSuffix Property | LastFirstNoSpaceCompany Property | LastFirstSpaceOnly Property | LastFirstSpaceOnlyCompany Property | LastModificationTime Property | LastName Property | LastNameAndFirstName Property | Links Property | MailingAddress Property | MailingAddressCity Property | MailingAddressCountry Property | MailingAddressPostalCode Property | MailingAddressPostOfficeBox Property | MailingAddressState Property | MailingAddressStreet Property | ManagerName Property | MarkForDownload Property | MessageClass Property | MiddleName Property | Mileage Property | MobileTelephoneNumber Property | NetMeetingAlias Property | NetMeetingServer Property | NickName Property | NoAging Property | OfficeLocation Property | OrganizationalIDNumber Property | OtherAddress Property | OtherAddressCity Property | OtherAddressCountry Property | OtherAddressPostalCode Property | OtherAddressPostOfficeBox Property | OtherAddressState Property | OtherAddressStreet Property | OtherFaxNumber Property | OtherTelephoneNumber Property | OutlookInternalVersion Property | OutlookVersion Property | PagerNumber Property | Parent Property | PersonalHomePage Property | PrimaryTelephoneNumber Property | Profession Property | RadioTelephoneNumber Property | ReferredBy Property | Saved Property | SelectedMailingAddress Property | Sensitivity Property | Session Property | Size Property | Spouse Property | Subject Property | Suffix Property | TelexNumber Property | Title Property | TTYTDDTelephoneNumber Property | UnRead Property | User1 Property | User2 Property | User3 Property | User4 Property | UserCertificate Property | UserProperties Property | WebPage Property | YomiCompanyName Property | YomiFirstName Property | YomiLastName Property

Methods | AddPicture Method | Close Method | Copy Method | Delete Method | Display Method | ForwardAsVcard Method | Move Method | PrintOut Method | RemovePicture Method | Save Method | SaveAs Method | ShowCategoriesDialog Method

Events | AttachmentAdd Event | AttachmentRead Event | BeforeAttachmentSave Event | BeforeCheckNames Event | BeforeDelete Event | Close Event | CustomAction Event | CustomPropertyChange Event | Forward Event | Open Event | PropertyChange Event | Read Event | Reply Event | ReplyAll Event | Send Event | Write Event

Parent Objects

Child Objects | Actions Object | Attachments Object | Conflicts Object | FormDescription Object | ItemProperties Object | Links Object | UserProperties Object