XmlConvert.IsStartNCNameChar Method (Char)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Checks if the passed-in character is a valid Start Name Character type.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public static bool IsStartNCNameChar(
	char ch
)

Parameters

ch
Type: System.Char

The character to validate.

Return Value

Type: System.Boolean

true if the character is a valid Start Name Character type; otherwise, false.

For details about allowed characters, see the XML 1.0 spec (fourth edition) recommendation.

.NET Framework
Available since 4.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: