Пример #1
0
        public static TeamFoundationIdentity GetUserIdentityByEmail(this TfsTeamProjectCollection collection, string mailAddress)
        {
            IIdentityManagementService ims = collection.GetIdentityManagementService();

            return(ims.ReadIdentity(IdentitySearchFactor.MailAddress, mailAddress, MembershipQuery.Direct, ReadIdentityOptions.ExtendedProperties));
        }