VistaDB 6
VistaDB.Web Namespace / VistaDBMembershipProvider Class / FindUsersByName Method
The user name to search for.
The index of the page of results to return. pageIndex is zero-based.
The size of the page of results to return.
The total number of matched users.


In This Topic
    FindUsersByName Method
    In This Topic
    Gets a collection of membership users where the user name contains the specified user name to match.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function FindUsersByName( _
       ByVal usernameToMatch As System.String, _
       ByVal pageIndex As System.Integer, _
       ByVal pageSize As System.Integer, _
       ByRef totalRecords As System.Integer _
    ) As System.Web.Security.MembershipUserCollection
    'Usage
     
    
    Dim instance As VistaDBMembershipProvider
    Dim usernameToMatch As System.String
    Dim pageIndex As System.Integer
    Dim pageSize As System.Integer
    Dim totalRecords As System.Integer
    Dim value As System.Web.Security.MembershipUserCollection
     
    value = instance.FindUsersByName(usernameToMatch, pageIndex, pageSize, totalRecords)
    public override System.Web.Security.MembershipUserCollection FindUsersByName( 
       System.string usernameToMatch,
       System.int pageIndex,
       System.int pageSize,
       out System.int totalRecords
    )

    Parameters

    usernameToMatch
    The user name to search for.
    pageIndex
    The index of the page of results to return. pageIndex is zero-based.
    pageSize
    The size of the page of results to return.
    totalRecords
    The total number of matched users.

    Return Value

    A System.Web.Security.MembershipUserCollection collection that contains a page of pageSize System.Web.Security.MembershipUser objects beginning at the page specified by pageIndex.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also