- localName
- The local name of the attribute to validate.
- namespaceUri
- The namespace URI of the attribute to validate.
- attributeValue
- An System.Xml.Schema.XmlValueGetter delegate used to pass the attribute's value as a Common Language Runtime (CLR) type compatible with the XML Schema Definition Language (XSD) type of the attribute.
- schemaInfo
- An System.Xml.Schema.XmlSchemaInfo object whose properties are set on successful validation of the attribute. This parameter and can be null.
The validated attribute's value.
The following are important notes to consider when using the XmlSchemaValidator.ValidateAttribute(string, string, XmlValueGetter, XmlSchemaInfo) method.
The XmlSchemaValidator.GetUnspecifiedDefaultAttributes method must be called after validating all the attributes for the current element with the erload:System.Xml.Schema.XmlSchemaValidator.ValidateAttribute method.
If an System.Xml.Schema.XmlSchemaAttribute object was passed to the XmlSchemaValidator.Initialize(XmlSchemaObject) method, the XmlSchemaValidator.ValidateAttribute(string, string, XmlValueGetter, XmlSchemaInfo) method validates the attribute against the System.Xml.Schema.XmlSchemaAttribute object.
If the attribute is successfully validated in the current element context, the System.Xml.Schema.XmlSchemaInfo object's (if specified) XmlSchemaInfo.SchemaAttribute, XmlSchemaInfo.SchemaType, XmlSchemaInfo.MemberType, and XmlSchemaInfo.Validity properties are set with the results of the validation.