SimpleMembershipProvider.FindUsersByName(String, Int32, Int32, Int32) SimpleMembershipProvider.FindUsersByName(String, Int32, Int32, Int32) SimpleMembershipProvider.FindUsersByName(String, Int32, Int32, Int32) Method

Definition

Returns all of the user accounts whose name matches the specified user name.

public override System.Web.Security.MembershipUserCollection FindUsersByName (string usernameToMatch, int pageIndex, int pageSize, out int totalRecords);
override this.FindUsersByName : string * int * int *  -> System.Web.Security.MembershipUserCollection
Public Overrides Function FindUsersByName (usernameToMatch As String, pageIndex As Integer, pageSize As Integer, ByRef totalRecords As Integer) As MembershipUserCollection
Parameters
usernameToMatch
String String String

The user name to search for.

pageIndex
Int32 Int32 Int32

The zero-based index of the page of results to return.

pageSize
Int32 Int32 Int32

The size of the page of results to return.

totalRecords
Int32 Int32 Int32

When this method returns, contains the total number of matched users.

Returns

A collection that contains a page of pageSize user accounts starting at the page specified by pageIndex.

Applies to