XmlSchemaAttribute.Name Property

 

Gets or sets the name of the attribute.

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

public string Name { get; set; }

Property Value

Type: System.String

The name of the attribute.

The name must be an NCName (no-colon name) as defined in the World Wide Web Consortium (W3C) XML Namespaces specification. When an XML document is validated against a schema, each attribute in the document is validated against an attribute element in the schema. The attribute element with a name attribute that matches the local name of the attribute in the document is used to validate that attribute. The Name and RefName properties are mutually exclusive.

Optional.

.NET Framework
Available since 1.1
Return to top
Show: