XmlConvert.VerifyNCName Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Verifies that the name is a valid NCName according to the W3C Extended Markup Language recommendation.
Assembly: System.Xml (in System.Xml.dll)
Parameters
- name
- Type: System.String
The name to verify.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is Nothing or String.Empty. |
| XmlException | name is not a valid NCName. |
Show: