FindProfilesByUserName Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
When overridden in a derived class, retrieves profile information for profiles in which the user name matches the specified user names.

Namespace: MySql.Web.Profile
Assembly: MySql.Web (in MySql.Web.dll) Version: 6.8.4.0

Syntax

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

Parameters

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

Return Value

A ProfileInfoCollection containing user-profile information for profiles where the user name matches the supplied usernameToMatch parameter.

See Also