GetUserByEmail gets one single user matching the email address provided This will only be useful in portals without duplicate email addresses filter expression

Namespace: DotNetNuke.Entities.Users
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static UserInfo GetUserByEmail(
	int portalId,
	string emailToMatch
)
Visual Basic
Public Shared Function GetUserByEmail ( 
	portalId As Integer,
	emailToMatch As String
) As UserInfo

Parameters

portalId
Type: System..::..Int32
The Id of the Portal
emailToMatch
Type: System..::..String
The email address to use to find a match.

Return Value

A single user object or null if no user found

Remarks