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

Assembly: System.Xml.ReaderWriter

Inheritance: object → XmlSchemaObjectXmlSchemaAnnotated → XmlSchemaType

The base class for all simple types and complex types.

Properties

public object
BaseSchemaType
Gets the post-compilation object type or the built-in XML Schema Definition Language (XSD) data type, simpleType element, or complexType element. This is a post-schema-compilation infoset property.
public XmlSchemaType
BaseXmlSchemaType
Gets the post-compilation value for the base type of this schema type.
Datatype
Gets the post-compilation value for the data type of the complex type.
DerivedBy
Gets the post-compilation information on how this element was derived from its base type.
Gets or sets the final attribute of the type derivation that indicates if further derivations are allowed.
FinalResolved
Gets the post-compilation value of the <see cref="P:System.Xml.Schema.XmlSchemaType.Final" /> property.
public bool
IsMixed
Gets or sets a value indicating if this type has a mixed content model. This property is only valid in a complex type.
public string
Name
Gets or sets the name of the type.
QualifiedName
Gets the qualified name for the type built from the <see langword="Name" /> attribute of this type. This is a post-schema-compilation property.
public XmlTypeCode
TypeCode
Gets the <see cref="T:System.Xml.Schema.XmlTypeCode" /> of the type.
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 static XmlSchemaComplexType
GetBuiltInComplexType​(XmlTypeCode typeCode)
Returns an <see cref="T:System.Xml.Schema.XmlSchemaComplexType" /> that represents the built-in complex type of the complex type specified.
Returns The <see cref="T:System.Xml.Schema.XmlSchemaComplexType" /> that represents the built-in complex type.
typeCode One of the <see cref="T:System.Xml.Schema.XmlTypeCode" /> values representing the complex type.
public static XmlSchemaComplexType
GetBuiltInComplexType​(XmlQualifiedName qualifiedName)
Returns an <see cref="T:System.Xml.Schema.XmlSchemaComplexType" /> that represents the built-in complex type of the complex type specified by qualified name.
Returns The <see cref="T:System.Xml.Schema.XmlSchemaComplexType" /> that represents the built-in complex type.
qualifiedName The <see cref="T:System.Xml.XmlQualifiedName" /> of the complex type.
public static XmlSchemaSimpleType
GetBuiltInSimpleType​(XmlTypeCode typeCode)
Returns an <see cref="T:System.Xml.Schema.XmlSchemaSimpleType" /> that represents the built-in simple type of the specified simple type.
Returns The <see cref="T:System.Xml.Schema.XmlSchemaSimpleType" /> that represents the built-in simple type.
typeCode One of the <see cref="T:System.Xml.Schema.XmlTypeCode" /> values representing the simple type.
public static XmlSchemaSimpleType
GetBuiltInSimpleType​(XmlQualifiedName qualifiedName)
Returns an <see cref="T:System.Xml.Schema.XmlSchemaSimpleType" /> that represents the built-in simple type of the simple type that is specified by the qualified name.
Returns The <see cref="T:System.Xml.Schema.XmlSchemaSimpleType" /> that represents the built-in simple type.
qualifiedName The <see cref="T:System.Xml.XmlQualifiedName" /> of the simple type.
public static bool
IsDerivedFrom​(XmlSchemaType derivedType, XmlSchemaType baseType, XmlSchemaDerivationMethod except)
Returns a value indicating if the derived schema type specified is derived from the base schema type specified.
Returns <see langword="true" /> if the derived type is derived from the base type; otherwise, <see langword="false" /> .
derivedType The derived <see cref="T:System.Xml.Schema.XmlSchemaType" /> to test.
baseType The base <see cref="T:System.Xml.Schema.XmlSchemaType" /> to test the derived <see cref="T:System.Xml.Schema.XmlSchemaType" /> against.
except One of the <see cref="T:System.Xml.Schema.XmlSchemaDerivationMethod" /> values representing a type derivation method to exclude from testing.
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