Item(String) Property
The Item property of the SPFolderCollection class gets the folder object located at the specified URL from the collection.
[C#] In C#, this property is an indexer for the SPFolderCollection class.
Parameters
urlOfFolder A string that contains the URL.
Property Value
A Microsoft.SharePoint.SPFolder object that represents the folder.
Remarks
Example
The following code example uses the indexer in displaying the name and length of each file in the specified folder.
This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.
The example assumes the existence of a .aspx page that contains a label control.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security