我正在使用以下代码:
IIdentityManagementService idMana = (IIdentityManagementService)server.GetService(typeof(IIdentityManagementService));
TeamFoundationIdentity[][] projectIdentities1 = idMana.ReadIdentities(IdentitySearchFactor.DisplayName, new []{"dev"}, MembershipQuery.Expanded, ReadIdentityOptions.ExtendedProperties);