ConfigurationElement.GetChildElement ConfigurationElement.GetChildElement ConfigurationElement.GetChildElement ConfigurationElement.GetChildElement Method

Definition

Returns a child element that is under the current configuration element.

Overloads

GetChildElement(String) GetChildElement(String) GetChildElement(String) GetChildElement(String)

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

GetChildElement(String, Type) GetChildElement(String, Type) GetChildElement(String, Type) GetChildElement(String, Type)

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

GetChildElement(String) GetChildElement(String) GetChildElement(String) GetChildElement(String)

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

public:
 Microsoft::Web::Administration::ConfigurationElement ^ GetChildElement(System::String ^ elementName);
public Microsoft.Web.Administration.ConfigurationElement GetChildElement (string elementName);
member this.GetChildElement : string -> Microsoft.Web.Administration.ConfigurationElement
Public Function GetChildElement (elementName As String) As ConfigurationElement

Parameters

elementName
String String String String

The name of the element being requested.

Returns

Exceptions

Remarks

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.

GetChildElement(String, Type) GetChildElement(String, Type) GetChildElement(String, Type) GetChildElement(String, Type)

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

public:
 Microsoft::Web::Administration::ConfigurationElement ^ GetChildElement(System::String ^ elementName, Type ^ elementType);
public Microsoft.Web.Administration.ConfigurationElement GetChildElement (string elementName, Type elementType);
member this.GetChildElement : string * Type -> Microsoft.Web.Administration.ConfigurationElement
Public Function GetChildElement (elementName As String, elementType As Type) As ConfigurationElement

Parameters

elementName
String String String String

The name of the element being requested.

elementType
Type Type Type Type

The .NET Framework type of the element being requested.

Returns

Exceptions

Remarks

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.

Applies to