This collection of Message objects is used by the Messages property of the ServiceDescription class to represent all <message> elements in a WSDL document. You can access an invidual Message by name or position (index number).
public sealed class MessageCollection : ServiceDescriptionBaseCollection { // Public Instance Properties public Message this[string name]{get; } public Message this[int index]{set; get; } // Public Instance Methods public int Add(Message message); public bool Contains(Message message); public void CopyTo(Message[ ] array, int index); public int IndexOf(Message message); public void Insert(int index, Message message); public void Remove(Message message); // Protected Instance Methods protected override string GetKey(object value); // overrides ServiceDescriptionBaseCollection protected override void SetParent(object value, object parent); // overrides ServiceDescriptionBaseCollection }