Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / UserRepository Class / LoadMostRecentForEmail Method / LoadMostRecentForEmail(String,Boolean) Method
Email address to lookup for
Whether to include anonymous users or not
Version
LoadMostRecentForEmail(String,Boolean) Method
Loads a User object that was created last for the given email address
Syntax
public User LoadMostRecentForEmail( 
   string email,
   bool includeAnonymous
)

Parameters

email
Email address to lookup for
includeAnonymous
Whether to include anonymous users or not

Return Value

From the list of users associated with the given email address the user that was created last is returned
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