MimeTextBinding.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // System.Web.Services.Description.MimeTextBinding.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Web.Services.Configuration;
  10. using System.Xml.Serialization;
  11. namespace System.Web.Services.Description {
  12. [XmlFormatExtension ("text", "http://microsoft.com/wsdl/mime/textMatching/", typeof (InputBinding), typeof (OutputBinding), typeof (MimePart))]
  13. [XmlFormatExtensionPrefix ("tm", "http://microsoft.com/wsdl/mime/textMatching/")]
  14. public sealed class MimeTextBinding : ServiceDescriptionFormatExtension {
  15. #region Fields
  16. public const string Namespace = "http://microsoft.com/wsdl/mime/textMatching/";
  17. MimeTextMatchCollection matches;
  18. #endregion // Fields
  19. #region Constructors
  20. public MimeTextBinding ()
  21. {
  22. matches = new MimeTextMatchCollection ();
  23. }
  24. #endregion // Constructors
  25. #region Properties
  26. [XmlElement ("match", typeof (MimeTextMatch))]
  27. public MimeTextMatchCollection Matches {
  28. get { return matches; }
  29. }
  30. #endregion // Properties
  31. }
  32. }