ServiceDescriptionCollection.Add Method (ServiceDescription)

 

Adds the specified ServiceDescription to the end of the ServiceDescriptionCollection.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

Public Function Add (
	serviceDescription As ServiceDescription
) As Integer

Parameters

serviceDescription
Type: System.Web.Services.Description.ServiceDescription

The ServiceDescription to add to the collection.

Return Value

Type: System.Int32

The zero-based index where the ServiceDescription parameter has been added.

' Create the object of 'ServiceDescriptionCollection' class.
Dim myCollection As New ServiceDescriptionCollection()
' Add 'ServiceDescription' objects. 
myCollection.Add(myServiceDescription1)
myCollection.Add(myServiceDescription2)

.NET Framework
Available since 1.1
Return to top
Show: