System.MessageStore.Folder.messageCount Property
Gets the number of messages in a Windows Mail (formerly Outlook Express) folder.
This property is read-only.
Syntax
propVal = System.MessageStore.Folder.messageCount()
Parameters
- intMessageCount [out]
Retrieves the number of messages.
Remarks
Eliminates the need to create a Messages collection and use count to get the number of messages in a folder.
Folders exposes the Windows Mail Local Folders collection. Subfolders and their content (such as messages) are not exposed.
Examples
The following example demonstrates how to retrieve the number of messages in a given folder.
// Create a Folders Collection.
var collFolders = System.MessageStore.Folders;
// Select the folder from position 0 in the Folders Collection.
var oFolder = collFolders.item(0);
// Get the number of messages in the folder.
var iMsgCount = oFolder.messageCount;
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