System.Xml.Schema.XmlSchemaValidator.ValidateAttribute Method

Validates the attribute name, namespace URI, and value in the current element context.

Syntax

public object ValidateAttribute (string localName, string namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo)

Parameters

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.

Returns

The validated attribute's value.

Remarks

The following are important notes to consider when using the XmlSchemaValidator.ValidateAttribute(string, string, XmlValueGetter, XmlSchemaInfo) method.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0