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
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.
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.