NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SecurityElement.SearchForTextOfTag

Find child by tag name and return contained text.

[Visual Basic]
Public Function SearchForTextOfTag( _
   ByVal tag As String _
) As String
[C#]
public string SearchForTextOfTag(
   string tag
);
[C++]
public: String* SearchForTextOfTag(
   String* tag
);
[JScript]
public function SearchForTextOfTag(
   tag : String
) : String;

Parameters

tag
tag to search for in child elements

Return Value

The text contents of the child element with the specified tag value.

Remarks

For example, with XML as follows, SearchForTextOfTag("second") would be "text2".

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

Example

// this method is equivalent to the following

String SearchForTextOfTag(String tag){ SecurityElement element = this.SearchForChildByTag(tag); return element.Text;}

See Also

SecurityElement Class | SecurityElement Members | System.Security Namespace