Partager via


XmlElementCollection.Item Property

Gets the XML element at the specified index in the collection.

Namespace: Microsoft.Web.Services3.Xml
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim xmlElementCollection1 As XmlElementCollection

Dim key As Integer
Dim returnValue As XmlElement
returnValue = xmlElementCollection1.Item(key)

Syntax

'Declaration
Public ReadOnly Property Item( _
    ByVal index As Integer _
) As XmlElement
public XmlElement this[
    int index
] {get;}
public:
property XmlElement^ default[int] {
    XmlElement^ get(int index);
}
public XmlElement get_Item(
    int index
);
In JScript, you can use Indexed Properties defined by a class, but you cannot define your own.

Parameters

  • index
    The zero-based index of the XML element to retrieve.

Property Value

The System.Xml.XmlElement at the specified index in the XmlElementCollection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

XmlElementCollection Class
XmlElementCollection Members
Microsoft.Web.Services3.Xml Namespace