SPMember class
SharePoint 2013
System.Object
Microsoft.SharePoint.SPMember
Microsoft.SharePoint.SPPrincipal
Microsoft.SharePoint.SPRole
Microsoft.SharePoint.SPMember
Microsoft.SharePoint.SPPrincipal
Microsoft.SharePoint.SPRole
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Each user or group in a site has a unique member ID, has the permissions associated with that membership, and can be represented by an SPMember object. Use the Member property of the SPRoleAssignment class to get the member that represents the user or group associated with a permission.
You can use an indexer to return a specific SPUser or SPGroup object for a Web site and then assign the object to an SPMember object, as follows.
Note |
|---|
Certain objects implement the IDisposable interface, and you must avoid retaining these objects in memory after they are no longer needed. For information about good coding practices, see Disposing Objects. |
Show:
Note