SecurityElement::IsValidText Method (String^)
.NET Framework (current version)
Determines whether a string is valid as text within an XML element.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- text
-
Type:
System::String^
The text to test for validity.
Return Value
Type: System::Booleantrue if the text parameter is a valid XML text element; otherwise, false.
The following code shows the use of the IsValidText method to determine whether a string is valid as XML element text. This code example is part of a larger example provided for the SecurityElement class.
.NET Framework
Available since 1.1
Available since 1.1
Show: