Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Xml.​Schema.​XmlSchemaAttribute

Assembly: System.Xml.ReaderWriter

Inheritance: object → XmlSchemaObjectXmlSchemaAnnotated → XmlSchemaAttribute

Represents the <see langword="attribute" /> element from the XML Schema as specified by the World Wide Web Consortium (W3C). Attributes provide additional information for other document elements. The attribute tag is nested between the tags of a document's element for the schema. The XML document displays attributes as named items in the opening tag of an element.

Properties

AttributeSchemaType
Gets an <see cref="T:System.Xml.Schema.XmlSchemaSimpleType" /> object representing the type of the attribute based on the <see cref="P:System.Xml.Schema.XmlSchemaAttribute.SchemaType" /> or <see cref="P:System.Xml.Schema.XmlSchemaAttribute.SchemaTypeName" /> of the attribute.
public object
AttributeType
Gets the common language runtime (CLR) object based on the <see cref="P:System.Xml.Schema.XmlSchemaAttribute.SchemaType" /> or <see cref="P:System.Xml.Schema.XmlSchemaAttribute.SchemaTypeName" /> of the attribute that holds the post-compilation value of the <see langword="AttributeType" /> property.
public string
DefaultValue
Gets or sets the default value for the attribute.
public string
FixedValue
Gets or sets the fixed value for the attribute.
public XmlSchemaForm
Form
Gets or sets the form for the attribute.
public string
Name
Gets or sets the name of the attribute.
QualifiedName
Gets the qualified name for the attribute.
RefName
Gets or sets the name of an attribute declared in this schema (or another schema indicated by the specified namespace).
SchemaType
Gets or sets the attribute type to a simple type.
SchemaTypeName
Gets or sets the name of the simple type defined in this schema (or another schema indicated by the specified namespace).
public XmlSchemaUse
Use
Gets or sets information about how the attribute is used.
Annotation
Gets or sets the <see langword="annotation" /> property.
public string
Id
Gets or sets the string id.
public XmlAttribute[]
UnhandledAttributes
Gets or sets the qualified attributes that do not belong to the current schema's target namespace.
public int
LineNumber
Gets or sets the line number in the file to which the <see langword="schema" /> element refers.
public int
LinePosition
Gets or sets the line position in the file to which the <see langword="schema" /> element refers.
Gets or sets the <see cref="T:System.Xml.Serialization.XmlSerializerNamespaces" /> to use with this schema object.
Parent
Gets or sets the parent of this <see cref="T:System.Xml.Schema.XmlSchemaObject" /> .
public string
SourceUri
Gets or sets the source location for the file that loaded the schema.

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object