Szerkesztés

Megosztás a következőn keresztül:


ContactItem object (Outlook)

Represents a contact in a Contacts folder.

Remarks

A contact can represent any person with whom you have any personal or professional contact.

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

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.

Example

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

Set myItem = Application.CreateItem(olContactItem)

Events

Name
AfterWrite
AttachmentAdd
AttachmentRead
AttachmentRemove
BeforeAttachmentAdd
BeforeAttachmentPreview
BeforeAttachmentRead
BeforeAttachmentSave
BeforeAttachmentWriteToTempFile
BeforeAutoSave
BeforeCheckNames
BeforeDelete
BeforeRead
Close
CustomAction
CustomPropertyChange
Forward
Open
PropertyChange
Read
ReadComplete
Reply
ReplyAll
Send
Unload
Write

Methods

Name
AddBusinessCardLogoPicture
AddPicture
ClearTaskFlag
Close
Copy
Delete
Display
ForwardAsBusinessCard
ForwardAsVcard
GetConversation
MarkAsTask
Move
PrintOut
RemovePicture
ResetBusinessCard
Save
SaveAs
SaveBusinessCardImage
ShowBusinessCardEditor
ShowCategoriesDialog
ShowCheckAddressDialog
ShowCheckFullNameDialog
ShowCheckPhoneDialog

Properties

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

See also

Outlook Object Model Reference ContactItem Object Members

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.