2 // System.Web.Services.Description.Message.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
10 using System.Collections;
\r
11 using System.Web.Services;
\r
13 namespace System.Web.Services.Description {
\r
14 public sealed class Message : DocumentableItem {
\r
19 MessagePartCollection parts;
\r
20 ServiceDescription serviceDescription;
\r
22 #endregion // Fields
\r
24 #region Constructors
\r
28 name = String.Empty;
\r
29 parts = new MessagePartCollection (this);
\r
30 serviceDescription = null;
\r
33 #endregion // Constructors
\r
37 public string Name {
\r
38 get { return name; }
\r
39 set { name = value; }
\r
42 public MessagePartCollection Parts {
\r
43 get { return parts; }
\r
44 set { parts = value; }
\r
47 public ServiceDescription ServiceDescription {
\r
48 get { return serviceDescription; }
\r
51 #endregion // Properties
\r
56 public MessagePart FindPartByName (string partName)
\r
58 throw new NotImplementedException ();
\r
62 public MessagePart[] FindPartsByName (string[] partNames)
\r
64 ArrayList searchResults = new ArrayList ();
\r
66 foreach (string partName in partNames)
\r
67 searchResults.Add (FindPartByName (partName));
\r
69 int count = searchResults.Count;
\r
72 throw new ArgumentException ();
\r
74 MessagePart[] returnValue = new MessagePart[count];
\r
75 searchResults.CopyTo (returnValue);
\r
79 internal void SetParent (ServiceDescription serviceDescription)
\r
81 this.serviceDescription = serviceDescription;
\r