System.Security.SecurityElement.IsValidText Method

Determines whether a string is valid as text within an XML element.

Syntax

public static bool IsValidText (string text)

Parameters

text
The text to test for validity.

Returns

true if the text parameter is a valid XML text element; otherwise, false.

Remarks

This method can be used to test SecurityElement.Text before setting it.

Requirements

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