Partilhar via


GetAllUsers Method

Gets a collection of all the users in the data source in pages of data. The total number of active users available.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Overrides Function GetAllUsers ( _
    pageIndex As Integer, _
    pageSize As Integer, _
    <OutAttribute> ByRef totalRecords As Integer _
) As MembershipUserCollection
'Usage
Dim instance As UpmMembershipProvider
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
)
public:
virtual MembershipUserCollection^ GetAllUsers(
    int pageIndex, 
    int pageSize, 
    [OutAttribute] int% totalRecords
) override
public override function GetAllUsers(
    pageIndex : int, 
    pageSize : int, 
    totalRecords : int
) : MembershipUserCollection

Parameters

  • pageIndex
    Type: System..::.Int32
    The index of the page of results to return. pageIndex is zero-based.

Return Value

Type: System.Web.Security..::.MembershipUserCollection
Returns a collection of active users.

Remarks

Returns a System.Web.Security.MembershipUserCollection that contains a page of pageSizeSystem.Web.Security.MembershipUser objects beginning at the page specified by pageIndex.

The totalRecords parameter is an out parameter that is set to the total number of users found in the membership data store.

Permissions

See Also

Reference

UpmMembershipProvider Class

UpmMembershipProvider Members

Microsoft.CommerceServer.Runtime.Profiles Namespace