TextUtilsIsLegalChar Method |
Indicates whether a given character is valid to be used in 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 IsLegalChar(
int character
)
Parameters
- character
- Type: SystemInt32
The character.
Return Value
Type:
Booleantrue if the character 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