File: UI\WebControls\AuthenticateEventArgs.cs
Project: ndp\fx\src\xsp\system\Web\System.Web.csproj (System.Web)
//------------------------------------------------------------------------------
// <copyright file="AuthenticateEventArgs.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
 
namespace System.Web.UI.WebControls {
 
    public class AuthenticateEventArgs : EventArgs {
        private bool _authenticated;
 
 
        public AuthenticateEventArgs() : this(false) {
        }
 
 
        public AuthenticateEventArgs(bool authenticated) {
            _authenticated = authenticated;
        }
 
 
        /// <devdoc>
        /// Gets or sets the success of the authentication attempt.  Would be set by
        /// custom authentication logic in the Login.Authenticate event handler.
        /// </devdoc>
        public bool Authenticated {
            get {
                return _authenticated;
            }
            set {
                _authenticated = value;
            }
        }
    }
}