共用方式為


SPMemberCollection Class

An abstract class encapsulating the behavior of user collections and group collections.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<SubsetCallableTypeAttribute> _
Public MustInherit Class SPMemberCollection _
    Inherits SPBaseCollection
'Usage
Dim instance As SPMemberCollection
[SubsetCallableTypeAttribute]
public abstract class SPMemberCollection : SPBaseCollection

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

SPMemberCollection Members

Microsoft.SharePoint Namespace