TextUtilsIsValidText Method (String) |
Indicates whether a given text is valid to be used as an ice.NET name, description, attribute value, etc.
Namespace: PDTec.IceNet.Sdk.UtilsAssembly: PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntaxpublic static bool IsValidText(
string text
)
Parameters
- text
- Type: SystemString
The text.
Return Value
Type:
Booleantrue if the text is valid, otherwise
false.
Remarks
Some characters are not valid in XML and cause trouble with XML-based processing (e.g. WebServices).
Therefore, strings containing such characters are rejected by ice.NET APIs. This method can be used
for previous checks.
See Also