在我的Team Foundation Server中,我有一个包含Team Project的集合.该团队项目有几个贡献者.以下代码行获得该项目的所有贡献者:
TfsTeamProjectCollection collection = new TfsTeamProjectCollection(new Uri("http://tfs:8080/tfs/CollectionName"));
IGroupSecurityService groupSecurityService = collection.GetService<IGroupSecurityService>();
Identity contributors = groupSecurityService.ReadIdentity(SearchFactor.AccountName, "[ProjectName]\\Contributors", QueryMembership.Expanded);
Identity[] members = groupSecurityService.ReadIdentities(SearchFactor.Sid, contributors.Members, QueryMembership.None);
Run Code Online (Sandbox Code Playgroud)
成员中的每个Identity 都有一个Property MailAddress,在我的例子中等于string.Empty.
我在哪里管理这些邮件地址?
我的第一个想法是在开始 - >管理工具 - >计算机管理 - >用户中查看用户
我选择了其中一个用户并打开了他的属性.我以为TFS可能会有一个电子邮件属性.但我找不到一个.
然后我打开了TFS管理控制台,查找了组成员资格并导航到其中一个用户.也无法编辑属性.
有谁知道在哪里设置该电子邮件地址?