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

XmlReader::IsNameToken Method (String^)

 

Returns 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.

Exception Condition
ArgumentNullException

The str value is null.

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

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft