System.Xml.Schema.XmlSchemaValidator.ValidateText Method

Validates whether the text returned by the System.Xml.Schema.XmlValueGetter object specified is allowed in the current element context, and accumulates the text for validation if the current element has simple content.

Syntax

public void ValidateText (XmlValueGetter elementValue)

Parameters

elementValue
An System.Xml.Schema.XmlValueGetter delegate used to pass the text value as a Common Language Runtime (CLR) type compatible with the XML Schema Definition Language (XSD) type of the attribute.

Remarks

The following are important notes to consider when using the XmlSchemaValidator.ValidateText(XmlValueGetter) 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