返回指定对象的类型。OlAttachmentType 常量,只读。
| OlAttachmentType 可为以下 OlAttachmentType 常量之一。 | 
| olByReference | 
| olByValue | 
| olEmbeddeditem | 
| olOLE | 
expression.Type
expression 必选。该表达式返回 Attachment 对象。
返回由 Link 对象代表的项目的类型。OlObjectClass 常量,只读。
| OlObjectClass 可为以下 OlObjectClass 常量之一。 | 
| olAction | 
| olActions | 
| olAddressEntries | 
| olAddressEntry | 
| olAddressList | 
| olAddressLists | 
| olApplication | 
| olAppointment | 
| olAttachment | 
| olAttachments | 
| olContact | 
| olDistributionList | 
| olDocument | 
| olException | 
| olExceptions | 
| olExplorer | 
| olExplorers | 
| olFolder | 
| olFolders | 
| olFormDescription | 
| olInspector | 
| olInspectors | 
| olItemProperties | 
| olItemProperty | 
| olItems | 
| olJournal | 
| olLink | 
| olLinks | 
| olMail | 
| olMeetingCancellation | 
| olMeetingRequest | 
| olMeetingResponseNegative | 
| olMeetingResponsePositive | 
| olMeetingResponseTentative | 
| olNamespace | 
| olNote | 
| olObjects | 
| olOutlookBarGroup | 
| olOutlookBarGroups | 
| olOutlookBarPane | 
| olOutlookBarShortcut | 
| olOutlookBarShortcuts | 
| olOutlookBarStorage | 
| olPages | 
| olPanes | 
| olPost | 
| olPropertyPages | 
| olPropertyPageSite | 
| olRecipient | 
| olRecipients | 
| olRecurrencePattern | 
| olReminder | 
| olReminders | 
| olRemote | 
| olReport | 
| olResults | 
| olSearch | 
| olSelection | 
| olSyncObject | 
| olSyncObjects | 
| olTask | 
| olTaskRequest | 
| olTaskRequestAccept | 
| olTaskRequestDecline | 
| olTaskRequestUpdate | 
| olUserProperties | 
| olUserProperty | 
| olView | 
| olViews | 
expression.Type
expression 必选。该表达式返回 Link 对象。
应用于 ItemProperty 和 UserProperty 对象的 Type 属性。
返回指定对象的类型。OlUserPropertyType 常量,只读。
| OlUserPropertyType 可为以下 OlUserPropertyType 常量之一。 | 
| olCombination | 
| olCurrency | 
| olDateTime | 
| olDuration | 
| olFormula | 
| olKeywords | 
| olNumber | 
| olOutlookInternal | 
| olPercent | 
| olText | 
| olYesNo | 
expression.Type
expression 必选。该表达式返回上述对象之一。
根据收件人的类型,返回或设置相当于以下某个常量的数字等效值。Long 类型。
JournalItem 收件人:OlJournalRecipientType 常量 olAssociatedContact。
MailItem 收件人:以下 OlMailRecipientType 常量之一:olBCC、olCC、olOriginator 或 olTo。
MeetingItem 收件人:以下 OlMeetingRecipientType 常量之一:olOptional、olOrganizer、olRequired 或 olResource。
TaskItem 收件人:以下 OlTaskRecipientType 常量之一:olFinalStatus 或 olUpdate。
该属性可读写。
expression.Type
expression 必选。该表达式返回 Recipient 对象。
应用于 AddressEntry 和 JournalItem 对象的 Type 属性。
对于 AddressEntry 对象,返回或设置该地址条目的类型,如 Internet 地址、MacMail 地址或 Microsoft Mail 地址,String 类型。对于 JournalItem 对象,则是自由格式的 String 字段,通常包含日记应用程序的显示名称(例如,“MSWord”)。可读写。
expression.Type
expression 必选。该表达式返回上述对象之一。
返回指定对象的类型。String 类型。唯一支持的字符串是“MAPI”,只读。
expression.Type
expression 必选。该表达式返回 NameSpace 对象。
本 Visual Basic for Applications 示例使用 CreateItem 创建约会,并用 MeetingStatus 将会议状态设置为“Meeting”,以将其变成同时包含必选和可选与会者的会议要求。
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olAppointmentItem)
myItem.MeetingStatus = olMeeting
myItem.Subject = "Strategy Meeting"
myItem.Location = "Conference Room B"
myItem.Start = #9/24/97 1:30:00 PM#
myItem.Duration = 90
Set myRequiredAttendee = myItem.Recipients.Add ("Nate Sun")
myRequiredAttendee.Type = olRequired
Set myOptionalAttendee = myItem.Recipients.Add ("Kevin Kennedy")
myOptionalAttendee.Type = olOptional
Set myResourceAttendee = myItem.Recipients.Add("Conference Room B")
myResourceAttendee.Type = olResource
myItem.Send
如果使用 VBScript,则不创建 Application 对象,而且也不能使用命名常量。本示例说明如何使用 VBScript 执行相同任务。
Set myItem = Application.CreateItem(1)
myItem.MeetingStatus = 1
myItem.Subject = "Strategy Meeting"
myItem.Location = "Conference Room B"
myItem.Start = #9/24/97 1:30:00 PM#
myItem.Duration = 90
Set myRequiredAttendee = myItem.Recipients.Add ("Nate Sun")
myRequiredAttendee.Type = 1
Set myOptionalAttendee = myItem.Recipients.Add ("Kevin Kennedy")
myOptionalAttendee.Type = 2
Set myResourceAttendee = myItem.Recipients.Add("Conference Room B")
myResourceAttendee.Type = 3
myItem.Send