ListViewEditEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / ListViewEditEventArgs.cs / 1 / ListViewEditEventArgs.cs

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

using System; 
using System.Collections.Specialized; 
using System.ComponentModel;
 
namespace System.Web.UI.WebControls {

    [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
    public class ListViewEditEventArgs : CancelEventArgs {
        private int _newEditIndex; 
 
        public ListViewEditEventArgs(int newEditIndex) : base(false) {
            _newEditIndex = newEditIndex; 
        }

        /// 
        /// Gets the int argument to the command posted to the . This property is read-only. 
        /// 
        public int NewEditIndex { 
            get { 
                return _newEditIndex;
            } 
        }
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

using System; 
using System.Collections.Specialized; 
using System.ComponentModel;
 
namespace System.Web.UI.WebControls {

    [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
    public class ListViewEditEventArgs : CancelEventArgs {
        private int _newEditIndex; 
 
        public ListViewEditEventArgs(int newEditIndex) : base(false) {
            _newEditIndex = newEditIndex; 
        }

        /// 
        /// Gets the int argument to the command posted to the . This property is read-only. 
        /// 
        public int NewEditIndex { 
            get { 
                return _newEditIndex;
            } 
        }
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

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