共用方式為


SPWeb.AllUsers Property

Gets the collection of user objects that represents all users who are either members of the site or who have browsed to the site as authenticated members of a domain group in the site.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

Public ReadOnly Property AllUsers As SPUserCollection
    Get

Dim instance As SPWeb
Dim value As SPUserCollection

value = instance.AllUsers
public SPUserCollection AllUsers { get; }

Property Value

Type: Microsoft.SharePoint.SPUserCollection
An SPUserCollection object that represents the users.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace