다음을 통해 공유


SPUserCollection Class

Represents a collection of SPUser objects.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPMemberCollection
        Microsoft.SharePoint.SPUserCollection

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableTypeAttribute(Name := "UserCollection", ServerTypeId := "{e090781e-8899-4672-9b3d-a78f49fad19d}",  _
    CollectionChildItemType := GetType(SPUser))> _
<SubsetCallableTypeAttribute> _
Public Class SPUserCollection _
    Inherits SPMemberCollection
'Usage
Dim instance As SPUserCollection
[ClientCallableTypeAttribute(Name = "UserCollection", ServerTypeId = "{e090781e-8899-4672-9b3d-a78f49fad19d}", 
    CollectionChildItemType = typeof(SPUser))]
[SubsetCallableTypeAttribute]
public class SPUserCollection : SPMemberCollection

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPUserCollection Members

Microsoft.SharePoint Namespace