XmlElementAttributes.Item[Int32] 属性
定义
获取或设置指定索引处的元素。Gets or sets the element at the specified index.
public:
property System::Xml::Serialization::XmlElementAttribute ^ default[int] { System::Xml::Serialization::XmlElementAttribute ^ get(int index); void set(int index, System::Xml::Serialization::XmlElementAttribute ^ value); };
public System.Xml.Serialization.XmlElementAttribute this[int index] { get; set; }
public System.Xml.Serialization.XmlElementAttribute? this[int index] { get; set; }
member this.Item(int) : System.Xml.Serialization.XmlElementAttribute with get, set
Default Public Property Item(index As Integer) As XmlElementAttribute
参数
- index
- Int32
要获取或设置的元素的从零开始的索引。The zero-based index of the element to get or set.
属性值
指定索引处的元素。The element at the specified index.
例外
index 不是 XmlElementAttributes 中的有效索引。index is not a valid index in the XmlElementAttributes.
设置了该属性,但 XmlElementAttributes 为只读。The property is set and the XmlElementAttributes is read-only.