Share via


Member Property

The Member property of the SPPermission class gets the member object for the user, site group, or cross-site group that has the permission.

Property Value

A Microsoft.SharePoint.SPMember object that represents the member.

Remarks

Every user, site group, or cross-site group associated with a permission has a unique member ID and can be represented by an SPMember object.

Example

The following code example uses the Member property to display the member IDs for the permissions on a site and the rights associated with each ID.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security