﻿// Decompiled with JetBrains decompiler
// Type: System.Web.UI.WebControls.AuthenticateEventArgs
// Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 7E68A73E-4066-4F24-AB0A-F147209F50EC
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Web.dll

using System;
using System.Runtime;

namespace System.Web.UI.WebControls
{
  /// <summary>
  /// Provides data for the <see cref="E:System.Web.UI.WebControls.Login.Authenticate"/> event.
  /// </summary>
  public class AuthenticateEventArgs : EventArgs
  {
    private bool _authenticated;

    /// <summary>
    /// Gets or sets a value indicating whether a user's authentication attempt succeeded.
    /// </summary>
    /// 
    /// <returns>
    /// true if the authentication attempt succeeded; otherwise, false.
    /// </returns>
    public bool Authenticated
    {
      [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get
      {
        return this._authenticated;
      }
      [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set
      {
        this._authenticated = value;
      }
    }

    /// <summary>
    /// Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.AuthenticateEventArgs"/> class with the <see cref="P:System.Web.UI.WebControls.AuthenticateEventArgs.Authenticated"/> property set to false.
    /// </summary>
    [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
    public AuthenticateEventArgs()
      : this(false)
    {
    }

    /// <summary>
    /// Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.AuthenticateEventArgs"/> class.
    /// </summary>
    /// <param name="authenticated">true if the user is authenticated; otherwise, false. </param>
    [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
    public AuthenticateEventArgs(bool authenticated)
    {
      this._authenticated = authenticated;
    }
  }
}
