Bagikan melalui


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)

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

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

See Also

Reference

IIdentityManagementService2 Interface

Microsoft.TeamFoundation.Framework.Client Namespace