This documentation is archived and is not being maintained.

IIdentityManagementService2::SetCustomDisplayName Method

Sets the display name for the current user in a sticky manner, overriding any display name returned by an external identity provider like Active Directory or Live.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

void SetCustomDisplayName(
	String^ customDisplayName
)

Parameters

customDisplayName
Type: System::String

The new display name.

Microsoft Visual Studio Team Foundation Server 2010 automatically disambiguated users who have the same display name by appending the domain and account name. Visual Studio Team Foundation Server 2012 does not disambiguate display names. SetCustomDisplayName can be used instead to make a display name unique.

Show: