ConfigurationElement.ChildElements Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets all the child elements of the current element.
public:
property Microsoft::Web::Administration::ConfigurationChildElementCollection ^ ChildElements { Microsoft::Web::Administration::ConfigurationChildElementCollection ^ get(); };
public Microsoft.Web.Administration.ConfigurationChildElementCollection ChildElements { get; }
member this.ChildElements : Microsoft.Web.Administration.ConfigurationChildElementCollection
Public ReadOnly Property ChildElements As ConfigurationChildElementCollection
Property Value
A ConfigurationChildElementCollection object that contains all the child elements of the current element.
Remarks
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