ITeamFoundationIdentityService.SetCustomDisplayName Method

Sets or removes a custom display name for the calling user.

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

Syntax

'Declaration
Sub SetCustomDisplayName ( _
    requestContext As TeamFoundationRequestContext, _
    customDisplayName As String _
)
void SetCustomDisplayName(
    TeamFoundationRequestContext requestContext,
    string customDisplayName
)
void SetCustomDisplayName(
    TeamFoundationRequestContext^ requestContext, 
    String^ customDisplayName
)
abstract SetCustomDisplayName : 
        requestContext:TeamFoundationRequestContext * 
        customDisplayName:string -> unit
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.

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

ITeamFoundationIdentityService Interface

Microsoft.TeamFoundation.Server.Core Namespace