Partilhar via


SPFolder Members

Include Protected Members
Include Inherited Members

Represents a folder on a SharePoint Web site.

The SPFolder type exposes the following members.

Properties

  Name Description
Public property Audit Gets the auditing object associated with the folder.
Public property ContainingDocumentLibrary Gets the GUID that identifies the document library that contains the folder, if one exists.
Public property ContentTypeOrder Gets a list of SPContentType objects.
Public property DocumentLibrary Gets the document library that contains the folder, if that library exists.
Public property EffectiveAuditMask Gets the effective audit mask for the folder object.
Public property EffectiveRawPermissions Get the base permissions for the current user.
Public property Exists Gets a Boolean value that indicates whether the folder exists.
Public property Files Gets the collection of all files contained in the folder.
Public property Item Gets the SPListItem object corresponding to the folder.
Public property ItemCount Gets the number of direct children, including subfolders, in this folder.
Public property Name Gets the name of the folder.
Public property ParentFolder Gets the parent folder of the folder.
Public property ParentListId Gets the ID for the parent list of the folder.
Public property ParentWeb Gets the parent Web site of the folder.
Public property ProgID Gets the identifier (ID) of the application in which the folder was created.
Public property Properties Gets a hash table that contains metadata for the folder.
Public property RequiresCheckout Gets a value that indicates whether the folder is in a document library that requires checkout.
Public property ServerRelativeUrl Gets the server-relative URL of the folder.
Public property SubFolders Gets the collection of subfolders contained within the folder.
Public property UniqueContentTypeOrder Gets or sets a list of the content type objects.
Public property UniqueId Gets the unique ID of the folder.
Public property Url Gets the Web site-relative URL of the folder.
Public property WelcomePage Gets or sets the URL to which users are redirected when they browse to the folder.

Top

Methods

  Name Description
Public method AddProperty Adds an element with the specified key/value pair to the metadata for the folder.
Public method CopyTo Copies the folder and its contents into a new folder at the specified URL.
Public method Delete Deletes the folder.
Public method DeleteProperty Deletes the element with the specified key from the metadata for the folder.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetProperty Gets the value of the element with the specified key from the metadata for the folder.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method MoveTo Moves the folder and its contents to a new folder at the specified URL.
Public method Recycle Sends the folder to the recycle bin.
Public method SetProperty Sets the value of the element with the specified key in the metadata for the folder.
Public method ToString Returns the relative URL of the folder based on the parent Web site. (Overrides Object.ToString().)
Public method Update Updates the database with changes made to the folder.

Top

See Also

Reference

SPFolder Class

Microsoft.SharePoint Namespace