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.​XmlSchemaElement

Assembly: System.Xml.ReaderWriter

Inheritance: object → XmlSchemaObjectXmlSchemaAnnotatedXmlSchemaParticle → XmlSchemaElement

Represents the <see langword="element" /> element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is the base class for all particle types and is used to describe an element in an XML document.

Properties

Gets or sets a <see langword="Block" /> derivation.
BlockResolved
Gets the post-compilation value of the <see langword="Block" /> property.
Constraints
Gets the collection of constraints on the element.
public string
DefaultValue
Gets or sets the default value of the element if its content is a simple type or content of the element is <see langword="textOnly" /> .
public XmlSchemaType
ElementSchemaType
Gets an <see cref="T:System.Xml.Schema.XmlSchemaType" /> object representing the type of the element based on the <see cref="P:System.Xml.Schema.XmlSchemaElement.SchemaType" /> or <see cref="P:System.Xml.Schema.XmlSchemaElement.SchemaTypeName" /> values of the element.
public object
ElementType
Gets a common language runtime (CLR) object based on the <see cref="T:System.Xml.Schema.XmlSchemaElement" /> or <see cref="T:System.Xml.Schema.XmlSchemaElement" /> of the element, which holds the post-compilation value of the <see langword="ElementType" /> property.
Gets or sets the <see langword="Final" /> property to indicate that no further derivations are allowed.
FinalResolved
Gets the post-compilation value of the <see langword="Final" /> property.
public string
FixedValue
Gets or sets the fixed value.
public XmlSchemaForm
Form
Gets or sets the form for the element.
public bool
IsAbstract
Gets or sets information to indicate if the element can be used in an instance document.
public bool
IsNillable
Gets or sets information that indicates if <see langword="xsi:nil" /> can occur in the instance data. Indicates if an explicit nil value can be assigned to the element.
public string
Name
Gets or sets the name of the element.
QualifiedName
Gets the actual qualified name for the given element.
RefName
Gets or sets the reference name of an element declared in this schema (or another schema indicated by the specified namespace).
public XmlSchemaType
SchemaType
Gets or sets the type of the element. This can either be a complex type or a simple type.
SchemaTypeName
Gets or sets the name of a built-in data type defined in this schema or another schema indicated by the specified namespace.
SubstitutionGroup
Gets or sets the name of an element that is being substituted by this element.
public decimal
MaxOccurs
Gets or sets the maximum number of times the particle can occur.
public string
MaxOccursString
Gets or sets the number as a string value. Maximum number of times the particle can occur.
public decimal
MinOccurs
Gets or sets the minimum number of times the particle can occur.
public string
MinOccursString
Gets or sets the number as a string value. The minimum number of times the particle can occur.
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