Membership.GetAllUsers Method (Int32, Int32, Int32)
Assembly: System.Web (in system.web.dll)
public: static MembershipUserCollection^ GetAllUsers ( int pageIndex, int pageSize, [OutAttribute] int% totalRecords )
public static MembershipUserCollection GetAllUsers ( int pageIndex, int pageSize, /** @attribute OutAttribute() */ /** @ref */ int totalRecords )
Not applicable.
Parameters
- pageIndex
The index of the page of results to return. Use 0 to indicate the first page.
- pageSize
The size of the page of results to return. pageIndex is zero-based.
- totalRecords
The total number of users.
Return Value
A MembershipUserCollection of MembershipUser objects representing all the users in the database for the configured applicationName.The results returned by GetAllUsers are constrained by the pageIndex and pageSize parameters. The pageSize parameter identifies the maximum number of MembershipUser objects to return in the MembershipUserCollection. The pageIndex parameter identifies which page of results to return, where 0 identifies the first page. The totalRecords parameter is an out parameter that is set to the total number of membership users for the configured applicationName. For example, if there are 13 users for the configured applicationName, and the pageIndex value was 1 with a pageSize of 5, the MembershipUserCollection returned would contain the sixth through the tenth users returned. totalRecords would be set to 13.