XmlReader.IsName 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 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 |
|---|---|
| NullReferenceException | The str value is null. |
This method uses the W3C XML 1.0 Recommendation to determine whether the name is valid.
Show: