This documentation is archived and is not being maintained.

SPListItem.FileSystemObjectType Property

Windows SharePoint Services 3

Gets or sets the file system object type for the item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPFileSystemObjectType FileSystemObjectType { get; set; }

Property Value

Type: Microsoft.SharePoint.SPFileSystemObjectType
An SPFileSystemObjectType value that indicates the type: file, folder, Web, or invalid. It is only valid to set this property on new SPListItem objects—that is, before the Update method is called for the first time and the objects are persisted in the database.