ServiceCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of instances of the Service class. This class cannot be inherited.
public ref class ServiceCollection sealed : System::Web::Services::Description::ServiceDescriptionBaseCollection
public sealed class ServiceCollection : System.Web.Services.Description.ServiceDescriptionBaseCollection
type ServiceCollection = class
inherit ServiceDescriptionBaseCollection
Public NotInheritable Class ServiceCollection
Inherits ServiceDescriptionBaseCollection
- Inheritance
Remarks
The Service class corresponds to the Web Services Description Language (WSDL) < service > element enclosed by the < definitions > root element. For more information about WSDL, see the WSDL specification.
Properties
| Name | Description |
|---|---|
| Item[Int32] |
Gets or sets the value of a Service at the specified zero-based index. |
| Item[String] |
Gets a Service specified by its name. |
| Table |
Gets an interface that implements the association of the keys and values in the ServiceDescriptionBaseCollection. (Inherited from ServiceDescriptionBaseCollection) |
Methods
| Name | Description |
|---|---|
| Add(Service) |
Adds the specified Service to the end of the ServiceCollection. |
| Contains(Service) |
Returns a value indicating whether the specified Service instance is a member of the ServiceCollection. |
| CopyTo(Service[], Int32) |
Copies the entire ServiceCollection to a one-dimensional array of type Service, starting at the specified zero-based index of the target array. |
| GetKey(Object) |
Returns the name of the key associated with the value passed by reference. (Inherited from ServiceDescriptionBaseCollection) |
| IndexOf(Service) |
Searches for the specified Service and returns the zero-based index of the first occurrence within the |
| Insert(Int32, Service) |
Adds the specified Service instance to the ServiceCollection at the specified zero-based index. |
| OnClear() |
Clears the contents of the ServiceDescriptionBaseCollection instance. (Inherited from ServiceDescriptionBaseCollection) |
| OnInsertComplete(Int32, Object) |
Performs additional custom processes after inserting a new element into the ServiceDescriptionBaseCollection. (Inherited from ServiceDescriptionBaseCollection) |
| OnRemove(Int32, Object) |
Removes an element from the ServiceDescriptionBaseCollection. (Inherited from ServiceDescriptionBaseCollection) |
| OnSet(Int32, Object, Object) |
Replaces one value with another within the ServiceDescriptionBaseCollection. (Inherited from ServiceDescriptionBaseCollection) |
| Remove(Service) |
Removes the first occurrence of the specified Service from the ServiceCollection. |
| SetParent(Object, Object) |
Sets the parent object of the ServiceDescriptionBaseCollection instance. (Inherited from ServiceDescriptionBaseCollection) |