Click or drag to resize
ISharePointFileService Interface
Provides access to SharePoint files.

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 13.0.131
Syntax
C#
public interface ISharePointFileService : ISharePointService

The ISharePointFileService type exposes the following members.

Methods
  NameDescription
Public methodDeleteFile
Deletes the file specified by serverRelativeUrl from the SharePoint server. Deleting a non-existent file within SharePoint site is a void action. Throws exception when serverRelativeUrl is invalid (does not point within any SharePoint site).
Public methodGetFile
Gets SharePoint file identified by server relative URL. The file may be loaded eagerly or lazily (depends on implementation). In such case an invalid serverRelativeUrl is not reported immediately.
Public methodIsConnectionSupported
Tells you whether connection parameters can be used by instantiated SharePoint service implementation.
(Inherited from ISharePointService.)
Public methodRecycleFile
Moves the file specified by serverRelativeUrl to the recycle bin of the SharePoint server. Returns the identifier of the new recycle bin item. Recycling a non-existent file within SharePoint site returns empty GUID. Throws exception when serverRelativeUrl is invalid (does not point within any SharePoint site).
Public methodUpdateFile
Updates file identified by serverRelativeUrl. New content and file name can be provided.
Public methodUploadFile
Uploads the file's content specified as a stream to the serverRelativeUrl location.
Top
See Also