MembershipUser.UserName Property
Gets the logon name of the membership user.
Assembly: System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)
A membership user's UserName is used in conjunction with the membership user's password to authenticate the membership user.
The UserName of a MembershipUser identifies a unique user for each application that uses Membership for authentication. An application is identified by the membership ApplicationName. The same user name can be used in multiple applications for different users. Alternatively, a single user name can be used to identify a user for multiple applications, provided the applications are configured with the same ApplicationName.
You can retrieve a MembershipUser object for a membership user by passing the user name to one of the overloads of the GetUser method, or as a member of a MembershipUserCollection returned from the GetAllUsers, FindUsersByName, or FindUsersByEmail method.
You can retrieve the user name for a membership user if the e-mail address for the user is known, by using the GetUserNameByEmail method.
Available since 2.0