Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / UserRepository Class / LoadForUserName Method / LoadForUserName(String) Method
User name to look up for
Version
LoadForUserName(String) Method
Loads a User object given the user name
Syntax
public User LoadForUserName( 
   string userName
)

Parameters

userName
User name to look up for

Return Value

The user object loaded or null if user with given name is not found
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