System.Web.Security.MembershipProvider.ValidateUser C# (CSharp) Method

ValidateUser() public abstract method

public abstract ValidateUser ( string name, string password ) : bool
name string
password string
return bool
		public abstract bool ValidateUser (string name, string password);
		public abstract bool UnlockUser (string userName);

Usage Example

Esempio n. 1
0
        public bool ValidateUser(string userName, string password)
        {
            if (String.IsNullOrEmpty(userName))
            {
                throw new ArgumentException("Value cannot be null or empty.", "userName");
            }
            if (String.IsNullOrEmpty(password))
            {
                throw new ArgumentException("Value cannot be null or empty.", "password");
            }

            return(_provider.ValidateUser(userName, password));
        }
All Usage Examples Of System.Web.Security.MembershipProvider::ValidateUser