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!

XmlContainer.Item (XmlIdent)

Returns the child element with the given identifier.

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

[Visual Basic]
Overloads Public Default ReadOnly Property Item( _
   ByVal id As XmlIdent _
) As XmlElement
[C#]
public XmlElement this[
   XmlIdent id
] {get;}
[C++]
public: __property XmlElement* get_Item(
   XmlIdent* id
);
[JScript]
returnValue = XmlContainerObject.Item(id);
-or-
returnValue = XmlContainerObject(id);

[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]

id
The identifier of the child element to obtain.

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

id
The identifier of the child element to obtain.

Property Value

The first child element with the given identifier.

Remarks

This indexer returns the first child element that has the given identifier. If the element does not exist, it is created and added to the end of this element's child list.

It is only possible to access XmlElement child nodes with this indexer. To obtain other types of child nodes (such as text nodes) by identifier, use the GetNodes method.

See Also

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