Exemple #1
0
        public static MembershipUserCollection FindUsersByEmail(string emailToMatch,
                                                                int pageIndex,
                                                                int pageSize,
                                                                out int totalRecords)
        {
            SecUtility.CheckParameter(ref emailToMatch,
                                      false,
                                      false,
                                      false,
                                      0,
                                      "emailToMatch");

            if (pageIndex < 0)
            {
                throw new ArgumentException(SR.GetString(SR.PageIndex_bad), "pageIndex");
            }

            if (pageSize < 1)
            {
                throw new ArgumentException(SR.GetString(SR.PageSize_bad), "pageSize");
            }

            return(Provider.FindUsersByEmail(emailToMatch,
                                             pageIndex,
                                             pageSize,
                                             out totalRecords));
        }
 public static MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize, out int totalRecords)
 {
     return(Provider.FindUsersByEmail(emailToMatch, pageIndex, pageSize, out totalRecords));
 }
        public static MembershipUserCollection FindUsersByEmail(string emailToMatch)
        {
            int totalRecords;

            return(Provider.FindUsersByEmail(emailToMatch, 0, int.MaxValue, out totalRecords));
        }