System.Security.SecurityElement.SearchForChildByTag Method

Finds a child by its tag name.

Syntax

public SecurityElement SearchForChildByTag (string tag)

Parameters

tag
The tag for which to search in child elements.

Returns

The first child XML element with the specified tag value, or null if no child element with tag exists.

Remarks

With XML as follows, SearchForChildByTag("second") would return the child element <second>.

Example

<thetag A="123" B="456" C="789"> <first>text1</first>
       <second>text2</second></thetag>

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0