Export (0) Print
Expand All

XmlConvert.VerifyNCName Method

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)

public static string VerifyNCName(
	string name
)

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 null or String.Empty.

XmlException

name is not a valid NCName.

An NCName is a name that cannot contain a colon.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft