DataListItem.IDataItemContainer.DataItem Property
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.
For a description of this member, see DataItem.
property System::Object ^ System::Web::UI::IDataItemContainer::DataItem { System::Object ^ get(); };
object System.Web.UI.IDataItemContainer.DataItem { get; }
member this.System.Web.UI.IDataItemContainer.DataItem : obj
ReadOnly Property DataItem As Object Implements IDataItemContainer.DataItem
Property Value
An Object that represents the value to use when data-binding operations are performed.
Implements
Remarks
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 DataItem member. The explicit interface implementation uses the DataItem property to retrieve the associated data object.