System::Xml::Schema::XmlSchemaSimpleContentRestriction class

XmlSchemaSimpleContentRestriction class

Represents the 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.

class XmlSchemaSimpleContentRestriction : public System::Xml::Schema::XmlSchemaContent

Methods

MethodDescription
get_AnyAttribute()Returns an XmlSchemaAnyAttribute to be used for the attribute value.
get_Attributes()Returns the XmlSchemaAttribute and XmlSchemaAttributeGroupRef collection of attributes for the simple type.
get_BaseType()Returns the simple type base value.
get_BaseTypeName()Returns the name of the built-in data type or simple type from which this type is derived.
get_Facets()Returns an XmlSchema facet.
set_AnyAttribute(const SharedPtr<XmlSchemaAnyAttribute>&)Sets an XmlSchemaAnyAttribute to be used for the attribute value.
set_BaseType(const SharedPtr<XmlSchemaSimpleType>&)Sets the simple type base value.
set_BaseTypeName(const SharedPtr<XmlQualifiedName>&)Sets the name of the built-in data type or simple type from which this type is derived.
XmlSchemaSimpleContentRestriction()Initializes a new instance of the XmlSchemaSimpleContentRestriction class.

Typedefs

TypedefDescription
PtrAn alias for shared pointer to an instance of this class.

Remarks

Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also