XmlReader::IsName Method (String^)
.NET Framework (current version)
Returns a value indicating whether the string argument is a valid XML name.
Assembly: System.Xml (in System.Xml.dll)
Parameters
- str
-
Type:
System::String^
The name to validate.
| Exception | Condition |
|---|---|
| ArgumentNullException | The str value is null. |
This method uses the W3C XML 1.0 Recommendation to determine whether the name is valid.
Universal Windows Platform
Available since 8
.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
Available since 8
.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
Show: