SiteUsers Property
The SiteUsers property of the SPWeb class gets the collection of all users belonging to the site collection.
Property Value
A Microsoft.SharePoint.SPUserCollection object that represents the users.
Example
The following code example uses the SiteUsers property to return the collection of users for the current site collection and displays the name of each user.
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