2 // System.Web.Services.Description.PortType.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
10 using System.Xml.Serialization;
\r
12 namespace System.Web.Services.Description {
\r
13 public sealed class PortType : DocumentableItem {
\r
18 OperationCollection operations;
\r
19 ServiceDescription serviceDescription;
\r
21 #endregion // Fields
\r
23 #region Constructors
\r
27 name = String.Empty;
\r
28 operations = new OperationCollection (this);
\r
29 serviceDescription = null;
\r
32 #endregion // Constructors
\r
36 [XmlAttribute ("name", DataType = "NCName")]
\r
37 public string Name {
\r
38 get { return name; }
\r
39 set { name = value; }
\r
42 [XmlElement ("operation")]
\r
43 public OperationCollection Operations {
\r
44 get { return operations; }
\r
47 public ServiceDescription ServiceDescription {
\r
48 get { return serviceDescription; }
\r
51 #endregion // Properties
\r
55 internal void SetParent (ServiceDescription serviceDescription)
\r
57 this.serviceDescription = serviceDescription;
\r
60 #endregion // Methods
\r