共用方式為


SPClaimsAuthMembershipProvider.GetAllUsers Method

Gets a collection of all users in the data source in pages of data.

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

Syntax

'Declaration
Public Overrides Function GetAllUsers ( _
    pageIndex As Integer, _
    pageSize As Integer, _
    <OutAttribute> ByRef totalRecords As Integer _
) As MembershipUserCollection
'Usage
Dim instance As SPClaimsAuthMembershipProvider
Dim pageIndex As Integer
Dim pageSize As Integer
Dim totalRecords As Integer
Dim returnValue As MembershipUserCollection

returnValue = instance.GetAllUsers(pageIndex, _
    pageSize, totalRecords)
public override MembershipUserCollection GetAllUsers(
    int pageIndex,
    int pageSize,
    out int totalRecords
)

Parameters

  • pageIndex
    Type: System.Int32

    The index of the page of results to return.

  • pageSize
    Type: System.Int32

    The size of the page of results to return.

  • totalRecords
    Type: System.Int32

    The number of users found. This parameter is passed uninitialized.

Return Value

Type: System.Web.Security.MembershipUserCollection
A collection of all users.

Remarks

This override get a collection of all users in the data source in data pages in the membership provider that is not an SPClaimsAuthMembershipProvider, and is used by forms-based authentication in the current application.

See Also

Reference

SPClaimsAuthMembershipProvider Class

SPClaimsAuthMembershipProvider Members

Microsoft.SharePoint.Administration.Claims Namespace