Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ChildElements Property

IIS 7.0

Gets all the child elements of the current element.

Namespace:  Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public ConfigurationChildElementCollection ChildElements { get; }

Property Value

Type: Microsoft.Web.Administration..::..ConfigurationChildElementCollection
A ConfigurationChildElementCollection object that contains all the child elements of the current element.

A child element collection that is represented in the ChildElements property differs from a nested element collection that is represented by the return value of the GetCollection method. Both collections contain ConfigurationElement objects. However, you should use the ChildElements property when you query the configuration for unique child elements such as the system.webServer/asp configuration section. You should use the GetCollection method when you query the configuration for collection elements that contain a unique key or a multi-attribute key, such as the system.webServer/sites configuration section

Community Additions

ADD
Show:
© 2015 Microsoft