Outlook) (ItemProperty 物件

代表 Microsoft Outlook 項目物件之指定項目屬性的相關資訊。

註解

每一個項目屬性 (Property) 會定義項目的特定屬性 (Attribute),例如名稱、類型或該項目的值。 ItemProperty 物件屬於 ItemProperties 集合的成員。

使用 ItemProperties.Item (索引) ,其中 index 是物件在集合中的數值位置,或是傳回單一 ItemProperty 物件的名稱。

範例

下列範例會建立 ItemProperties 集合中第一個 ItemProperty 物件的參照。

Sub NewMail() 
 
 'Creates a new MailItem and references the ItemProperties collection. 
 
 Dim objMail As MailItem 
 
 Dim objitems As ItemProperties 
 
 Dim objitem As ItemProperty 
 
 
 
 'Create a new mail item 
 
 Set objMail = Application.CreateItem(olMailItem) 
 
 'Create a reference to the ItemProperties collection 
 
 Set objitems = objMail.ItemProperties 
 
 'Create reference to the first object in the collection 
 
 Set objitem = objitems.item(0) 
 
End Sub

屬性

名稱
Application
Class
IsUserProperty
Name
Parent
Session
Type
Value

另請參閱

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

支援和意見反應

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