MembershipValidatePasswordEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Security / MembershipValidatePasswordEventArgs.cs / 1 / MembershipValidatePasswordEventArgs.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

/* 
 * ValidatePasswordEventArgs class 
 *
 * Copyright (c) 1999 Microsoft Corporation 
 */
namespace System.Web.Security
{
    using System.Security.Permissions; 

    [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
    public sealed class ValidatePasswordEventArgs : EventArgs 
    {
        private string    _userName; 
        private string    _password;
        private bool      _isNewUser;
        private bool      _cancel;
        private Exception _failureInformation; 

        public ValidatePasswordEventArgs( 
            string userName, 
            string password,
            bool   isNewUser ) 
        {
            _userName = userName;
            _password = password;
            _isNewUser = isNewUser; 
            _cancel = false;
        } 
 
        public string UserName
        { 
            get{ return _userName; }
        }

        public string Password 
        {
            get{ return _password; } 
        } 

        public bool IsNewUser 
        {
            get{ return _isNewUser; }
        }
 
        public bool Cancel
        { 
            get{ return _cancel; } 
            set{ _cancel = value; }
        } 

        public Exception FailureInformation
        {
            get{ return _failureInformation; } 
            set{ _failureInformation = value; }
        } 
    } 
}


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK