XmlSerializationReader.IsXmlnsAttribute Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Determines whether an XML attribute name indicates an XML namespace.

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

protected bool IsXmlnsAttribute(
	string name


Type: System.String

The name of an XML attribute.

Return Value

Type: System.Boolean

true if the XML attribute name indicates an XML namespace; otherwise, false.

The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

An attribute name indicates an XML namespace if it takes the form xmlns:key, where "key" is the namespace name.

.NET Framework
Available since 1.1
Available since 2.0
Return to top