Export (0) Print
Expand All

System.MessageStore.Folder.Messages property

[The Windows Gadget Platform/Sidebar is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]

A collection of System.MessageStore.Message object types.

This property is read-only.

Syntax


objMessages = System.MessageStore.Folder.Messages


Property value

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 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

End of client support

Windows 7

End of server support

Windows Server 2008

IDL

Sidebar.idl

DLL

Sidebar.Exe (version 1.00 or later)

See also

Reference
count
item
System.MessageStore.Message
System.MessageStore.Folder
System.MessageStore
Folders

 

 

Community Additions

ADD
Show:
© 2014 Microsoft