Partager via


IMailBox Interface

IMailBox Interface

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release. Provides access to a hierarchy of folders belonging to a person.

CLSID

CD000125-8B95-11D1-82DB-00C04FB1625D

Extends

IDispatch

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Member Summary

The following table lists the properties of the IMailBox interface.

Name Description
BaseFolder Returns the URL to the primary folder in a mailbox, usually the inbox. This property is read-only.
Calendar Returns the URL to the folder containing items of calendar content. This property is read-only.
Contacts Returns the URL to the folder containing items of contact content. This property is read-only.
DeletedItems Returns the URL to the folder containing deleted items. This property is read-only.
Drafts Returns the URL to the folder containing items being composed. This property is read-only.
Forms Returns the URL to the folder containing items of form content. This property is read-only.
Inbox Returns the URL to the inbox folder. This property is read-only.
Journal Returns the URL to the folder containing items of journal content. This property is read-only, and is not yet implemented.
Notes Returns the URL to the folder containing items of notes content. This property is read-only, and is not yet implemented.
Outbox Returns the URL to the folder containing items to be sent, or not yet sent. This property is read-only.
RootFolder Returns the URL to the highest folder in the hierarchy, usually the Mailbox. This property is read-only.
SentItems Returns the URL to the folder containing sent items. This property is read-only.
Tasks Returns the URL to the folder containing items of task content. This property is read-only, and is not yet implemented.

Remarks

The IMailbox interface provides quick access to the folders in a user's mailbox.

Example

This example shows how to use IMailbox with the Collaboration Data Objects (CDO) Person object to get the URL of a person's inbox when you know the e-mail address.

[VBScript]

email = WScript.Arguments(0)

Set Person = CreateObject("CDO.Person")

strURL = "mailto:" & email

Person.DataSource.Open strURL

Set Mailbox = Person.GetInterface("IMailbox")

WScript.Echo "URL to inbox for " & email & " is: " & Mailbox.Inbox

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.