IsNameToken Method
TOC
Collapse the table of content
Expand the table of content

XmlReader.IsNameToken Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a value indicating whether or not the string argument is a valid XML name token.

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

public static bool IsNameToken(
	string str
)

Parameters

str
Type: System.String
The name token to validate.

Return Value

Type: System.Boolean
true if it is a valid name token; otherwise false.

ExceptionCondition
NullReferenceException

The str value is null.

This method uses the W3C XML 1.0 Recommendation to determine whether the name token is valid.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft