VerifyNCName Method

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.

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

'Declaration
Public Shared Function VerifyNCName ( _
	name As String _
) As String

Parameters

name
Type: System.String
The name to verify.

Return Value

Type: System.String
The name, if it is a valid NCName.

ExceptionCondition
ArgumentNullException

name is Nothing or String.Empty.

XmlException

name is not a valid NCName.

An NCName is a name that cannot contain a colon.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft