ABsoluteMaybe.SampleWebsite.MVC2.Models.FormsAuthenticationService.SignIn C# (CSharp) Метод

SignIn() публичный метод

public SignIn ( string userName, bool createPersistentCookie ) : void
userName string
createPersistentCookie bool
Результат void
        public void SignIn(string userName, bool createPersistentCookie)
        {
            if (String.IsNullOrEmpty(userName)) throw new ArgumentException("Value cannot be null or empty.", "userName");

            FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);
        }
FormsAuthenticationService