XmlElementAttributes.IList.Item Property (Int32)

.NET Framework (current version)

Gets or sets the element at the specified index.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml.XmlSerializer (in System.Xml.XmlSerializer.dll)

Object IList.this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32

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

Property Value

Type: System.Object
The element at the specified index.

Implements

IList.Item

ExceptionCondition
ArgumentOutOfRangeException

index is not a valid index in the XmlElementAttributes.

NotSupportedException

The property is set and the XmlElementAttributes is read-only.

.NET Framework

Supported in: 4.6

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show: