System.Shell.Folder.Items Property

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

propVal = System.Shell.Folder.Items()

  

Parameters

  • collItem [out]
    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
Minimum supported server 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

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK