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:
int Add(
	ServiceDescription^ serviceDescription
)

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 a ServiceDescriptionCollection.
ServiceDescriptionCollection^ myCollection = gcnew ServiceDescriptionCollection;

// Add ServiceDescriptions to the collection.
myCollection->Add( myServiceDescription1 );
myCollection->Add( myServiceDescription2 );

.NET Framework
Available since 1.1
Return to top
Show: