DataListItem.IDataItemContainer.DataItem Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

For a description of this member, see IDataItemContainer.DataItem.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

object IDataItemContainer.DataItem { get; }

Property Value

Type: System.Object

An Object that represents the value to use when data-binding operations are performed.

Typically, you should use the DataListItem.DataItem property to retrieve the data object for a DataListItem object.

The IDataItemContainer.DataItem member is an explicit interface member implementation. It can be used only when the DataListItem instance is cast to an IDataItemContainer interface.

Notes to Inheritors:

To define a custom implementation for retrieving the data object for a DataListItem, override the DataListItem.DataItem member. The explicit interface implementation uses the DataListItem.DataItem property to retrieve the associated data object.

.NET Framework
Available since 2.0
Return to top