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.​XmlSchemaSimpleType
Assembly: System.Xml.ReaderWriter
Inheritance: object → XmlSchemaObject → XmlSchemaAnnotated → XmlSchemaType → XmlSchemaSimpleType
Represents the <see langword="simpleType" /> element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). This class defines a simple type. Simple types can specify information and constraints for the value of attributes or elements with text-only content.
Properties
public
XmlSchemaSimpleTypeContent
Content
Gets or sets one of <see cref="T:System.Xml.Schema.XmlSchemaSimpleTypeUnion" /> , <see cref="T:System.Xml.Schema.XmlSchemaSimpleTypeList" /> , or <see cref="T:System.Xml.Schema.XmlSchemaSimpleTypeRestriction" /> .
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.
public
XmlSchemaDatatype
Datatype
Gets the post-compilation value for the data type of the complex type.
public
XmlSchemaDerivationMethod
DerivedBy
Gets the post-compilation information on how this element was derived from its base type.
public
XmlSchemaDerivationMethod
Final
Gets or sets the final attribute of the type derivation that indicates if further derivations are allowed.
public
XmlSchemaDerivationMethod
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.
public
XmlQualifiedName
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.
public
XmlSchemaAnnotation
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.
Namespaces
Gets or sets the <see cref="T:System.Xml.Serialization.XmlSerializerNamespaces" /> to use with this schema object.
public
XmlSchemaObject
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
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object