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, string attributeValue, XmlSchemaInfo schemaInfo)

Parameters

localName
The local name of the attribute to validate.
namespaceUri
The namespace URI of the attribute to validate.
attributeValue
The value of the attribute to validate.
schemaInfo
An System.Xml.Schema.XmlSchemaInfo object whose properties are set on successful validation of the attribute. This parameter can be null.

Returns

The validated attribute's value.

Remarks

The following are important notes to consider when using the XmlSchemaValidator.ValidateAttribute(string, string, string, 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