TeamFoundationIdentityService.SetCustomDisplayName Method

Set or remove a custom display name for the calling user.

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

Syntax

'Declaration
Public Sub SetCustomDisplayName ( _
    requestContext As TeamFoundationRequestContext, _
    customDisplayName As String _
)
public void SetCustomDisplayName(
    TeamFoundationRequestContext requestContext,
    string customDisplayName
)
public:
virtual void SetCustomDisplayName(
    TeamFoundationRequestContext^ requestContext, 
    String^ customDisplayName
) sealed
abstract SetCustomDisplayName : 
        requestContext:TeamFoundationRequestContext * 
        customDisplayName:string -> unit  
override SetCustomDisplayName : 
        requestContext:TeamFoundationRequestContext * 
        customDisplayName:string -> unit
public final function SetCustomDisplayName(
    requestContext : TeamFoundationRequestContext, 
    customDisplayName : String
)

Parameters

  • customDisplayName
    Type: System.String

    The custom display name. Use null or an empty string to clear the custom display name.

Implements

ITeamFoundationIdentityService.SetCustomDisplayName(TeamFoundationRequestContext, String)

Remarks

Setting a custom display name overrides any display name provided by the provider (AD, Internet providers like Live, etc).

.NET Framework Security

See Also

Reference

TeamFoundationIdentityService Class

Microsoft.TeamFoundation.Framework.Server Namespace