9 private string defaultValue;
11 private string fixedValue;
29 private SchemaAttDef attDef;
162 return qualifiedName;
169 [Obsolete(
"This property has been deprecated. Please use AttributeSchemaType property that returns a strongly typed attribute type. http://go.microsoft.com/fwlink/?linkid=14202")]
174 if (attributeType ==
null)
182 return attributeType;
193 return attributeType;
202 if (attributeType !=
null)
210 internal SchemaAttDef AttDef
222 internal bool HasDefault => defaultValue !=
null;
225 internal override string NameAttribute
237 internal XmlReader Validate(XmlReader reader, XmlResolver resolver, XmlSchemaSet schemaSet,
ValidationEventHandler valEventHandler)
239 if (schemaSet !=
null)
241 XmlReaderSettings xmlReaderSettings =
new XmlReaderSettings();
243 xmlReaderSettings.Schemas = schemaSet;
244 xmlReaderSettings.ValidationEventHandler += valEventHandler;
245 return new XsdValidatingReader(reader, resolver, xmlReaderSettings,
this);
250 internal void SetQualifiedName(XmlQualifiedName value)
252 qualifiedName = value;
255 internal void SetAttributeType(XmlSchemaSimpleType value)
257 attributeType = value;
260 internal override XmlSchemaObject Clone()
262 XmlSchemaAttribute xmlSchemaAttribute = (XmlSchemaAttribute)MemberwiseClone();
263 xmlSchemaAttribute.refName = refName.Clone();
264 xmlSchemaAttribute.typeName = typeName.Clone();
265 xmlSchemaAttribute.qualifiedName = qualifiedName.Clone();
266 return xmlSchemaAttribute;
XmlSchemaUse Use
Gets or sets information about how the attribute is used.
The T:System.Xml.Schema.XmlSchemaDatatype class is an abstract class for mapping XML Schema definitio...
XmlSchemaForm
Indicates if attributes or elements need to be qualified with a namespace prefix.
XmlSchemaDatatype Datatype
Gets the post-compilation value for the data type of the complex type.
Represents an attribute. Valid and default values for the attribute are defined in a document type de...
The base class for any element that can contain annotation elements.
ValidationType
Specifies the type of validation to perform.
string DefaultValue
Gets or sets the default value for the attribute.
XmlSchemaUse
Indicator of how the attribute is used.
string Namespace
Gets a string representation of the namespace of the T:System.Xml.XmlQualifiedName.
XmlQualifiedName? SchemaTypeName
Gets or sets the name of the simple type defined in this schema (or another schema indicated by the s...
delegate void ValidationEventHandler(object sender, ValidationEventArgs e)
Represents the callback method that will handle XML schema validation events and the T:System....
object AttributeType
Gets the common language runtime (CLR) object based on the P:System.Xml.Schema.XmlSchemaAttribute....
XmlQualifiedName QualifiedName
Gets the qualified name for the attribute.
Represents an XML qualified name.
string Name
Gets or sets the name of the attribute.
XmlQualifiedName? RefName
Gets or sets the name of an attribute declared in this schema (or another schema indicated by the spe...
XmlSchemaSimpleType AttributeSchemaType
Gets an T:System.Xml.Schema.XmlSchemaSimpleType object representing the type of the attribute based o...
XmlSchemaForm Form
Gets or sets the form for the attribute.
static readonly XmlQualifiedName Empty
Provides an empty T:System.Xml.XmlQualifiedName.
XmlQualifiedName QualifiedName
Gets the qualified name for the type built from the Name attribute of this type. This is a post-schem...
Represents the simpleType element for simple content from XML Schema as specified by the World Wide W...
Represents the attribute element from the XML Schema as specified by the World Wide Web Consortium (W...
string FixedValue
Gets or sets the fixed value for the attribute.