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)

object IList.this[
	int index
] { get; 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: