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.​XmlSchemaSimpleContentRestriction
Assembly: System.Xml.ReaderWriter
Inheritance: object → XmlSchemaObject → XmlSchemaAnnotated → XmlSchemaContent → XmlSchemaSimpleContentRestriction
Represents the <see langword="restriction" /> element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). This class can be used to derive simple types by restriction. Such derivations can be used to restrict the range of values for the element to a subset of the values specified in the inherited simple type.
Properties
public
XmlSchemaAnyAttribute
AnyAttribute
Gets or sets an <see cref="T:System.Xml.Schema.XmlSchemaAnyAttribute" /> to be used for the attribute value.
public
XmlSchemaObjectCollection
Attributes
Gets the <see cref="T:System.Xml.Schema.XmlSchemaAttribute" /> and <see cref="T:System.Xml.Schema.XmlSchemaAttributeGroupRef" /> collection of attributes for the simple type.
public
XmlSchemaSimpleType
BaseType
Gets or sets the simple type base value.
public
XmlQualifiedName
BaseTypeName
Gets or sets the name of the built-in data type or simple type from which this type is derived.
public
XmlSchemaObjectCollection
Facets
Gets or sets an Xml Schema facet.
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