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.

ImmutableList<T>::IList::Item Property (Int32)

 

Gets or sets the Object at the specified index.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.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 index.

Property Value

Type: System::Object^

The value at the specified index.

Exception Condition
IndexOutOfRangeException

Thrown from getter when index is negative or not less than Count.

NotSupportedException

Always thrown from the setter.

Return to top
Show:
© 2017 Microsoft