DataListItemEventArgs(DataListItem) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DataListItemEventArgs class.
public:
DataListItemEventArgs(System::Web::UI::WebControls::DataListItem ^ item);
public DataListItemEventArgs (System.Web.UI.WebControls.DataListItem item);
new System.Web.UI.WebControls.DataListItemEventArgs : System.Web.UI.WebControls.DataListItem -> System.Web.UI.WebControls.DataListItemEventArgs
Public Sub New (item As DataListItem)
Parameters
- item
- DataListItem
A DataListItem object that represents an item in the DataList control.
Examples
The following example demonstrates how to create and initialize a new instance of the DataListItemEventArgs class.
void Item_Created(Object sender, DataListItemEventArgs e)
{
DataListItemEventArgs item_arg = new DataListItemEventArgs(e.Item);
}
Sub Item_Created(sender As Object, e As DataListItemEventArgs)
Dim item_arg As New DataListItemEventArgs(e.Item)
End Sub
Remarks
Use this constructor to create and initialize a new instance of the DataListItemEventArgs class.
When an instance of DataListItemEventArgs is created by a call to this constructor, the following property is initialized to the specified value.
Property | Initial Value |
---|---|
Item | The value of the item parameter. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기