System.Web.UI.WebControls Namespace DataListItemEventArgs Class
Initializes a new instance of the DataListItemEventArgs class.
[ VB ]
Public Sub New ( _
ByVal item As DataListItem _
)
[ C# ]
public DataListItemEventArgs (
DataListItem item
);
[ C++ ]
public: DataListItemEventArgs (
DataListItem* item
);
[ JScript ]
public function DataListItemEventArgs (
item : DataListItem
);
- item
- The DataListItem associated with the event. The Item property is set to this value.
The following table shows initial property values for an instance of DataListItemEventArgs.
Property |
Initial Value |
Item |
The value of the item parameter. |
The following example demonstrates how to initialize a new instance of the DataListItemEventArgs class.
void Item_Created ( Object src, DataListItemEventArgs e ) {
DataListItemEventArgs item_arg = new DataListItemEventArgs ( e.Item );
}
Sub Item_Created ( src As Object, e As DataListItemEventArgs )
Dim item_arg As New DataListItemEventArgs ( e.Item )
End Sub |
|
C# |
VB |
DataListItemEventArgs Members