ListControl::Items Property

 
System_CAPS_noteNote

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

Gets the collection of items in the list control.

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

public:
[PersistenceModeAttribute(PersistenceMode::InnerDefaultProperty)]
property ListItemCollection^ Items {
	virtual ListItemCollection^ get();
}

Property Value

Type: System.Web.UI.WebControls::ListItemCollection^

The items within the list. The default is an empty list.

Use this property to get the properties of items in the list control. This property can be used to determine the selected items in the list control.

The following example demonstrates how to use the Items property to determine the selected items in a CheckBoxList control.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: