2 // System.Web.Services.Description.OperationMessageCollection.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
10 using System.Web.Services;
\r
12 namespace System.Web.Services.Description {
\r
13 public sealed class OperationMessageCollection : ServiceDescriptionBaseCollection {
\r
17 Operation operation;
\r
19 #endregion // Fields
\r
21 #region Constructors
\r
23 internal OperationMessageCollection (Operation operation)
\r
25 this.operation = operation;
\r
28 #endregion // Constructors
\r
32 public OperationFlow Flow {
\r
34 get { throw new NotImplementedException (); }
\r
37 public OperationInput Input {
\r
39 get { throw new NotImplementedException (); }
\r
42 public OperationMessage this [int index] {
\r
43 get { return (OperationMessage) List[index]; }
\r
44 set { List[index] = value; }
\r
47 public OperationOutput Output {
\r
49 set { throw new NotImplementedException (); }
\r
52 #endregion // Properties
\r
56 public int Add (OperationMessage operationMessage)
\r
58 Insert (Count, operationMessage);
\r
62 public bool Contains (OperationMessage operationMessage)
\r
64 return List.Contains (operationMessage);
\r
67 public void CopyTo (OperationMessage[] array, int index)
\r
69 List.CopyTo (array, index);
\r
72 public int IndexOf (OperationMessage operationMessage)
\r
74 return List.IndexOf (operationMessage);
\r
77 public void Insert (int index, OperationMessage operationMessage)
\r
79 SetParent (operationMessage, operation);
\r
80 List.Insert (index, operationMessage);
\r
84 protected override void OnInsert (int index, object value)
\r
86 throw new NotImplementedException ();
\r
90 protected override void OnSet (int index, object oldValue, object newValue)
\r
92 throw new NotImplementedException ();
\r
96 protected override void OnValidate (object value)
\r
98 throw new NotImplementedException ();
\r
101 public void Remove (Operation operationMessage)
\r
103 List.Remove (operationMessage);
\r
106 protected override void SetParent (object value, object parent)
\r
108 ((OperationMessage) value).SetParent ((Operation) parent);
\r
111 #endregion // Methods
\r