System.MessageStore.Folder.Messages Property
A collection of System.MessageStore.Message object types.
This property is read-only.
Syntax
propVal = System.MessageStore.Folder.Messages()
Parameters
- collMessage [out]
A collection of System.MessageStore.Message object types.
Remarks
Messages represents the collection of Windows Mail (formerly Outlook Express) messages in a folder from the Folders collection.
Folders exposes the Windows Mail Local Folders collection. Sub-folders and their content (such as messages) are not exposed.
Examples
The following example demonstrates how to use the Folders and Messages collections to select a message and find the value of the subject
property for that message.
// Create a Folders Collection object and assign it to the variable collFolders.
var collFolders = System.MessageStore.Folders;
// Select the folder from position 0 in the Folders Collection and assign it to the variable oFolder.
var oFolder = collFolders.item(0);
// Get the Messages Collection from folder oFolder, and assign it to the variable collMsgs.
var collMsgs = oFolder.Messages;
// Get the message from position 2 in the Messages Collection and assign it to the variable oMsg.
// oMsg is an instance of a System.MessageStoreMessage object.
var oMsg = collMsgs.item(2);
// Access the "subject" property of the oMsg object and assign it to the string variable strSubjectLine.
var strSubjectLine = oMsg.subject;
Requirements
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
IDL | Sidebar.idl |
DLL | Sidebar.Exe version 1.00 or later |
See Also
Reference
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK