Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PropertyDescriptorCollection::IList::Item Property (Int32)

 

Gets or sets an item from the collection at a specified index.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

private:
property Object^ default[
	int index
] {
	virtual Object^ get(int index) sealed = IList::default::get;
	virtual void set(int index, Object^ value) sealed = IList::default::set;
}

Parameters

index
Type: System::Int32

The zero-based index of the item to get or set.

Property Value

Type: System::Object^

The element at the specified index.

Exception Condition
NotSupportedException

The collection is read-only.

ArgumentException

value is not a PropertyDescriptor.

IndexOutOfRangeException

index is less than 0.

-or-

index is equal to or greater than Count.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft