共用方式為


Outlook) (ContactItem 物件

代表 [連絡人] 資料夾中的連絡人。

註解

連絡人可以代表與您有任何個人或工作連絡的任何人。

使用 CreateItem 方法可建立代表新連絡人的 ContactItem 物件。

使用 Items (index) ,其中 index 是連絡人的索引編號,或是用來比對連絡人預設屬性的值,可從 Contacts 資料夾傳回單一 ContactItem 物件。

範例

以下 Visual Basic for Applications (VBA) 範例傳回新連絡人。

Set myItem = Application.CreateItem(olContactItem)

事件

名稱
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

方法

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

屬性

名稱
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

另請參閱

Outlook 物件模型參考ContactItem 物件成員

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應