ListViewCancelEventArgs(Int32, ListViewCancelMode) 构造函数
定义
初始化 ListViewCancelEventArgs 类的新实例。Initializes a new instance of the ListViewCancelEventArgs class.
public:
ListViewCancelEventArgs(int itemIndex, System::Web::UI::WebControls::ListViewCancelMode cancelMode);
public ListViewCancelEventArgs (int itemIndex, System.Web.UI.WebControls.ListViewCancelMode cancelMode);
new System.Web.UI.WebControls.ListViewCancelEventArgs : int * System.Web.UI.WebControls.ListViewCancelMode -> System.Web.UI.WebControls.ListViewCancelEventArgs
Public Sub New (itemIndex As Integer, cancelMode As ListViewCancelMode)
参数
- itemIndex
- Int32
项的索引,该项包含引发事件的“取消”按钮。The index of the item that contains the Cancel button that raised the event.
- cancelMode
- ListViewCancelMode
ListViewCancelMode 值之一,表示用户取消了何种操作。One of the ListViewCancelMode values that indicates which operation the user canceled.
注解
使用此构造函数初始化类的新实例 ListViewCancelEventArgs 。Use this constructor to initialize a new instance of the ListViewCancelEventArgs class.
下表显示 ListViewCancelEventArgs 类的实例的初始属性值。The following table shows initial property values for an instance of ListViewCancelEventArgs class.
| 属性Property | 初始值Initial value |
|---|---|
| CancelMode | cancelMode 参数的值。The value of the cancelMode parameter. |
| ItemIndex | itemIndex 参数的值。The value of the itemIndex parameter. |
备注
此构造函数主要由控件开发人员在引发事件时使用。This constructor is primarily used by control developers when they raise events.