Partilhar via


FindUsersByEmail Method (String, Int32, Int32, Int32)

Returns a collection of membership users whose email address match the search criteria. The total number of users matching the query are available.

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

Syntax

'Declaration
Public Overrides Function FindUsersByEmail ( _
    emailToMatch As String, _
    pageIndex As Integer, _
    pageSize As Integer, _
    <OutAttribute> ByRef totalRecords As Integer _
) As MembershipUserCollection
'Usage
Dim instance As UpmMembershipProvider
Dim emailToMatch As String
Dim pageIndex As Integer
Dim pageSize As Integer
Dim totalRecords As Integer
Dim returnValue As MembershipUserCollection

returnValue = instance.FindUsersByEmail(emailToMatch, _
    pageIndex, pageSize, totalRecords)
public override MembershipUserCollection FindUsersByEmail(
    string emailToMatch,
    int pageIndex,
    int pageSize,
    out int totalRecords
)
public:
virtual MembershipUserCollection^ FindUsersByEmail(
    String^ emailToMatch, 
    int pageIndex, 
    int pageSize, 
    [OutAttribute] int% totalRecords
) override
public override function FindUsersByEmail(
    emailToMatch : String, 
    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.
  • totalRecords
    Type: System..::.Int32%
    The total number of users matching the query.

Return Value

Type: System.Web.Security..::.MembershipUserCollection
Returns a collection of users whose email address match search criteria.

Remarks

Returns a collection of users whose email address match search criteria. The System.Web.Security.MembershipUserCollection contains a page of pageSizeSystem.Web.Security.MembershipUser objects beginning at the page specified by pageIndex.

emailToMatch is trimmed before the search begins.

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

Permissions

See Also

Reference

UpmMembershipProvider Class

UpmMembershipProvider Members

FindUsersByEmail Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace