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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
customDisplayName
Type: System.StringThe 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
- 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.