FindUsersByName Method

MySQL Connector/Net

Gets a collection of membership users where the user name contains the specified user name to match.

Namespace:  MySql.Web.Security
Assembly:  MySql.Web (in MySql.Web.dll) Version: 6.2.2.0

Syntax

C#
public override MembershipUserCollection FindUsersByName(
	string usernameToMatch,
	int pageIndex,
	int pageSize,
	out int totalRecords
)
Visual Basic (Declaration)
Public Overrides Function FindUsersByName ( _
	usernameToMatch As String, _
	pageIndex As Integer, _
	pageSize As Integer, _
	<OutAttribute> ByRef totalRecords As Integer _
) As MembershipUserCollection
Visual C++
public:
virtual MembershipUserCollection^ FindUsersByName(
	String^ usernameToMatch, 
	int pageIndex, 
	int pageSize, 
	[OutAttribute] int% totalRecords
) override

Parameters

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

Return Value

A MembershipUserCollection collection that contains a page of pageSizeMembershipUser objects beginning at the page specified by pageIndex.

See Also