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)
Syntax
'Declaration
Sub SetCustomDisplayName ( _
customDisplayName As String _
)
void SetCustomDisplayName(
string customDisplayName
)
void SetCustomDisplayName(
String^ customDisplayName
)
abstract SetCustomDisplayName :
customDisplayName:string -> unit
function SetCustomDisplayName(
customDisplayName : String
)
Parameters
customDisplayName
Type: System.StringThe new display name.
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.