XmlSchemaKey.cs 837 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. namespace System.Xml.Schema
  5. {
  6. /// <summary>
  7. /// Summary description for XmlSchemaKey.
  8. /// </summary>
  9. public class XmlSchemaKey : XmlSchemaIdentityConstraint
  10. {
  11. private int errorCount;
  12. public XmlSchemaKey()
  13. {
  14. }
  15. /// <remarks>
  16. /// 1. name must be present
  17. /// 2. selector and field must be present
  18. /// </remarks>
  19. [MonoTODO]
  20. internal new int Compile(ValidationEventHandler h, XmlSchemaInfo info)
  21. {
  22. return base.Compile(h,info);
  23. }
  24. [MonoTODO]
  25. internal int Validate(ValidationEventHandler h)
  26. {
  27. return errorCount;
  28. }
  29. internal new void error(ValidationEventHandler handle, string message)
  30. {
  31. errorCount++;
  32. ValidationHandler.RaiseValidationError(handle, this, message);
  33. }
  34. }
  35. }