Sdílet prostřednictvím


ConfigurationElement.ChildElements Property

Definition

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

Applies to