SP.File Methods
Applies to: SharePoint Foundation 2010
The following table lists the methods of the SP.File class.
Methods
Name |
Description |
---|---|
Checks the file in to a document library based on the check-in type. |
|
Checks out the file from a document library based on the check out type. |
|
Copies the file to the destination URL. Server must overwrite an existing file of the same name if bOverwrite is true. |
|
Deletes the file object. |
|
Initializes a new instance of the SP.File Class. |
|
Specifies the control set used to access, modify, or add Web Parts associated with this Web Part Page and view. |
|
This member is reserved for internal use and is not intended to be used directly from your code. |
|
Moves the file to the specified destination URL. |
|
Submits the file for content approval with the specified comment. |
|
Moves the file to the Recycle Bin and returns the identifier of the new Recycle Bin item. |
|
Reverts an existing checkout for the file. |
|
Removes the file from content approval or unpublish a major version. |