UserInfoProviderGetFormattedUserName Method |
Returns formatted username in format: fullname (nickname) if nicname specified otherwise fullname (username).
Allows you to customize how the usernames will look like throughout the admin UI.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax public static string GetFormattedUserName(
string username,
string fullname,
string nickname = null,
bool isLiveSite = false
)
Parameters
- username
- Type: SystemString
Source user name - fullname
- Type: SystemString
Source full name - nickname (Optional)
- Type: SystemString
Source user nick name - isLiveSite (Optional)
- Type: SystemBoolean
Indicates if returned username should be displayed on live site
Return Value
Type:
StringSee Also