|
using System;
using System.Collections.Generic;
using System.Text;
namespace LumiSoft.Net.AUTH
{
/// <summary>
/// This class provides data for server authentication mechanisms <b>GetUserInfo</b> event.
/// </summary>
public class AUTH_e_UserInfo : EventArgs
{
private bool m_UserExists = false;
private string m_UserName = "";
private string m_Password = "";
/// <summary>
/// Default constructor.
/// </summary>
/// <param name="userName">User name.</param>
/// <exception cref="ArgumentNullException">Is raised when <b>userName</b> is null reference.</exception>
/// <exception cref="ArgumentException">Is raised when any of the arguments has invalid value.</exception>
public AUTH_e_UserInfo(string userName)
{
if(userName == null){
throw new ArgumentNullException("userName");
}
if(userName == string.Empty){
throw new ArgumentException("Argument 'userName' value must be specified.","userName");
}
m_UserName = userName;
}
#region Properties implementation
/// <summary>
/// Gets or sets if specified user exists.
/// </summary>
public bool UserExists
{
get{ return m_UserExists; }
set{ m_UserExists = value; }
}
/// <summary>
/// Gets user name.
/// </summary>
public string UserName
{
get{ return m_UserName; }
}
/// <summary>
/// Gets or sets user password.
/// </summary>
public string Password
{
get{ return m_Password; }
set{ m_Password = value; }
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.