﻿// Decompiled with JetBrains decompiler
// Type: System.Web.UI.WebControls.WebParts.WebPartVerbsEventArgs
// 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.WebParts
{
  /// <summary>
  /// Provides event data for the <see cref="E:System.Web.UI.WebControls.WebParts.WebPartZoneBase.CreateVerbs"/> event that is used by the <see cref="M:System.Web.UI.WebControls.WebParts.WebPartZoneBase.OnCreateVerbs(System.Web.UI.WebControls.WebParts.WebPartVerbsEventArgs)"/> method.
  /// </summary>
  public class WebPartVerbsEventArgs : EventArgs
  {
    private WebPartVerbCollection _verbs;

    /// <summary>
    /// Gets or sets the Web Parts verbs used in the event data.
    /// </summary>
    /// 
    /// <returns>
    /// A <see cref="T:System.Web.UI.WebControls.WebParts.WebPartVerbCollection"/>.
    /// </returns>
    public WebPartVerbCollection Verbs
    {
      get
      {
        if (this._verbs == null)
          return WebPartVerbCollection.Empty;
        return this._verbs;
      }
      [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set
      {
        this._verbs = value;
      }
    }

    /// <summary>
    /// Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.WebParts.WebPartVerbsEventArgs"/> class.
    /// </summary>
    [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
    public WebPartVerbsEventArgs()
      : this((WebPartVerbCollection) null)
    {
    }

    /// <summary>
    /// Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.WebParts.WebPartVerbsEventArgs"/> class using the specified Web Parts verb collection.
    /// </summary>
    /// <param name="verbs">A Web Parts verb collection.</param>
    [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
    public WebPartVerbsEventArgs(WebPartVerbCollection verbs)
    {
      this._verbs = verbs;
    }
  }
}
