NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlAttributeCollection.Item (Int32)

Returns the attribute at a given index.

[C#] In C#, this member is the indexer for the XmlAttributeCollection class.

[Visual Basic]
Overloads Public Default ReadOnly Property Item( _
   ByVal index As Integer _
) As XmlAttribute
[C#]
public XmlAttribute this[
   int index
] {get;}
[C++]
public: __property XmlAttribute get_Item(
   int index
);
[JScript]
returnValue = XmlAttributeCollectionObject.Item(index);
-or-
returnValue = XmlAttributeCollectionObject(index);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.

Arguments [JScript]

index
The index of the attribute to access. The index must be greater than or equal to zero and less than Count.

Parameters [Visual Basic, C#, C++]

index
The index of the attribute to access. The index must be greater than or equal to zero and less than Count.

Remarks

This indexer returns the XmlAttribute stored at the given index. To set the value of an attribute, use one of the indexers that take the name or identifier of the attribute.

See Also

XmlAttributeCollection Class | XmlAttributeCollection Members | System.Xml Namespace | XmlAttributeCollection.Item Overload List