VistaDB 6
VistaDB.Web Namespace / VistaDBProfileProvider Class / FindProfilesByUserName Method
One of the System.Web.Profile.ProfileAuthenticationOption values, specifying whether anonymous, authenticated, or both types of profiles are returned.
The user name to search for.
The index of the page of results to return.
The size of the page of results to return.
When this method returns, contains the total number of profiles.


In This Topic
    FindProfilesByUserName Method
    In This Topic
    When overridden in a derived class, retrieves profile information for profiles in which the user name matches the specified user names.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function FindProfilesByUserName( _
       ByVal authenticationOption As System.Web.Profile.ProfileAuthenticationOption, _
       ByVal usernameToMatch As System.String, _
       ByVal pageIndex As System.Integer, _
       ByVal pageSize As System.Integer, _
       ByRef totalRecords As System.Integer _
    ) As System.Web.Profile.ProfileInfoCollection
    'Usage
     
    
    Dim instance As VistaDBProfileProvider
    Dim authenticationOption As System.Web.Profile.ProfileAuthenticationOption
    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.Profile.ProfileInfoCollection
     
    value = instance.FindProfilesByUserName(authenticationOption, usernameToMatch, pageIndex, pageSize, totalRecords)
    public override System.Web.Profile.ProfileInfoCollection FindProfilesByUserName( 
       System.Web.Profile.ProfileAuthenticationOption authenticationOption,
       System.string usernameToMatch,
       System.int pageIndex,
       System.int pageSize,
       out System.int totalRecords
    )

    Parameters

    authenticationOption
    One of the System.Web.Profile.ProfileAuthenticationOption values, specifying whether anonymous, authenticated, or both types of profiles are returned.
    usernameToMatch
    The user name to search for.
    pageIndex
    The index of the page of results to return.
    pageSize
    The size of the page of results to return.
    totalRecords
    When this method returns, contains the total number of profiles.

    Return Value

    A System.Web.Profile.ProfileInfoCollection containing user-profile information for profiles where the user name matches the supplied usernameToMatch parameter.
    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