Import.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // System.Web.Services.Description.Import.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Xml.Serialization;
  10. namespace System.Web.Services.Description {
  11. public sealed class Import : DocumentableItem {
  12. #region Fields
  13. string location;
  14. string ns;
  15. ServiceDescription serviceDescription;
  16. #endregion // Fields
  17. #region Constructors
  18. public Import ()
  19. {
  20. location = String.Empty;
  21. ns = String.Empty;
  22. serviceDescription = null;
  23. }
  24. #endregion // Constructors
  25. #region Properties
  26. [XmlAttribute ("location")]
  27. public string Location {
  28. get { return location; }
  29. set { location = value; }
  30. }
  31. [XmlAttribute ("namespace")]
  32. public string Namespace {
  33. get { return ns; }
  34. set { ns = value; }
  35. }
  36. public ServiceDescription ServiceDescription {
  37. get { return serviceDescription; }
  38. }
  39. #endregion // Properties
  40. #region Methods
  41. internal void SetParent (ServiceDescription serviceDescription)
  42. {
  43. this.serviceDescription = serviceDescription;
  44. }
  45. #endregion
  46. }
  47. }