System.Xml.Schema.XmlSchemaAttribute.Name Property

Gets or sets the name of the attribute.

Syntax

[System.Xml.Serialization.XmlAttribute("name")]
public string Name { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

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.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0