ConfigurationElement.GetChildElement Method (String)


Returns a child element that is under the current configuration element and has the specified name.

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

public ConfigurationElement GetChildElement(
	string elementName


Type: System.String

The name of the element being requested.

Exception Condition

The elementName parameter is null or empty.

You should use this method if the current element does not represent the root element for a collection. To return individual items in a configuration collection, use the GetCollection method.

Return to top