TextUtilsIsValidText Method (String, Int32) |
Indicates whether a given text is valid to be used as an ice.NET name, description, attribute value, etc.
Namespace:
PDTec.IceNet.Sdk.Utils
Assembly:
PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax public static bool IsValidText(
string text,
out int invalidChar
)
Parameters
- text
- Type: SystemString
The text. - invalidChar
- Type: SystemInt32
The codepoint of the invalid char.
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