ITeamFoundationIdentityService.SetCustomDisplayName 方法
设置或移除自定义显示名称。该调用的用户。
命名空间: Microsoft.TeamFoundation.Server.Core
程序集: Microsoft.TeamFoundation.Server.Core(在 Microsoft.TeamFoundation.Server.Core.dll 中)
语法
声明
Sub SetCustomDisplayName ( _
requestContext As TeamFoundationRequestContext, _
customDisplayName As String _
)
void SetCustomDisplayName(
TeamFoundationRequestContext requestContext,
string customDisplayName
)
参数
- requestContext
类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
请求上下文。
- customDisplayName
类型:System.String
自定义显示名称。使用 null 或为空字符串清除自定义显示名称。
备注
设置自定义显示名称重写该提供程序提供的所有显示名称 (AD、internet 提供程序与活动等)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。