Microsoft.SharePoint.Sharing namespace

SharePoint 2013

Contains classes that specify methods associated with file sharing on SharePoint sites.

  Class Description
Public class SPDocumentSharingManager this class is a placeholder for all document sharing related methods
Public class UserRoleAssignment This class defines a pair of a user and a role that is associated with the user.
Public class UserSharingResult This class defines a sharing result for an individual user returned by the UpdateDocumentSharingInfo() method.

  Enumeration Description
Public enumeration Role This enum class defines a set of abstract roles that a user can be assigned to share a securable object in a document library.