Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Users property of the SPWeb class gets the collection of user objects belonging to the Web site.
Property Value
A Microsoft.SharePoint.SPUserCollection object that represents the users.
Example
The following code example uses the Users property to return the collection of users on a specified site in the current site collection.
This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security