System.Shell.Folder.Items 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.Shell.Item objects.

Note

Objects of type System.Shell.Item can only be accessed through the Items collection. This collection is a member of System.Shell.Folder.

This property is read-only.

Syntax

objItems = System.Shell.Folder.Items

Property value

A collection of System.Shell.Item objects.

Remarks

Each System.Shell.Item in the Items collection corresponds to a file system object present on the machine.

Examples

The following example demonstrates how to create an Items collection, select the System.Shell.Item instance at index 3 from the Items collection, and access the isFolder property of that System.Shell.Item instance.

// Create an Items Collection.
var collItems = System.Shell.Folder.Items; 
            
// Get the System.Shell.Item instance at index 3 of the collection.
var oMyShellItem = collItems.item(3);  
            
// Get the value of the IsFolder property of oMyShellItem.
var bIsFolder = oMyShellItem.IsFolder;

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.Shell.Item

System.Shell.Folder