SPFolder members
Represents a folder on a SharePoint Web site.
The SPFolder type exposes the following members.
Properties
Name | Description | |
---|---|---|
Audit | Gets the auditing object associated with the folder. | |
ContainingDocumentLibrary | Gets the GUID that identifies the document library that contains the folder, if one exists. | |
ContentTypeOrder | Gets a list of SPContentType objects. | |
DocumentLibrary | Gets the document library that contains the folder, if that library exists. | |
EffectiveAuditMask | Gets the effective audit mask for the folder object. | |
EffectiveRawPermissions | Get the base permissions for the current user. | |
Exists | Gets a Boolean value that indicates whether the folder exists. | |
Files | Gets the collection of all files contained in the folder. | |
Item | Gets the SPListItem object corresponding to the folder. | |
ItemCount | Gets the number of direct children, including subfolders, in this folder. | |
Name | Gets the name of the folder. | |
ParentFolder | Gets the parent folder of the folder. | |
ParentListId | Gets the ID for the parent list of the folder. | |
ParentWeb | Gets the parent Web site of the folder. | |
ProgID | Gets the identifier (ID) of the application in which the folder was created. | |
Properties | Gets a hash table that contains metadata for the folder. | |
RequiresCheckout | Gets a value that indicates whether the folder is in a document library that requires checkout. | |
ServerRelativeUrl | Gets the server-relative URL of the folder. | |
SubFolders | Gets the collection of subfolders contained within the folder. | |
UniqueContentTypeOrder | Gets or sets a list of the content type objects. | |
UniqueId | Gets the unique ID of the folder. | |
Url | Gets the Web site-relative URL of the folder. | |
WelcomePage | Gets or sets the URL to which users are redirected when they browse to the folder. |
Top
Methods
Name | Description | |
---|---|---|
AddProperty | Adds an element with the specified key/value pair to the metadata for the folder. | |
CopyTo | Copies the folder and its contents into a new folder at the specified URL. | |
Delete | Deletes the folder. | |
DeleteProperty | Deletes the element with the specified key from the metadata for the folder. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetProperty | Gets the value of the element with the specified key from the metadata for the folder. | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
MoveTo | Moves the folder and its contents to a new folder at the specified URL. | |
Recycle | Sends the folder to the recycle bin. | |
SetProperty | Sets the value of the element with the specified key in the metadata for the folder. | |
ToString | Returns the relative URL of the folder based on the parent Web site. (Overrides Object.ToString().) | |
Update | Updates the database with changes made to the folder. |
Top