ServiceDescriptionCollection.Add Method
.NET Framework 2.0
Adds the specified ServiceDescription to the end of the ServiceDescriptionCollection.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
public int Add ( ServiceDescription serviceDescription )
public function Add ( serviceDescription : ServiceDescription ) : int
Not applicable.
Parameters
- serviceDescription
The ServiceDescription to add to the collection.
Return Value
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 );
// Create the object of 'ServiceDescriptionCollection' class.
ServiceDescriptionCollection myCollection = new
ServiceDescriptionCollection();
// Add 'ServiceDescription' objects.
myCollection.Add(myServiceDescription1);
myCollection.Add(myServiceDescription2);
// Create a ServiceDescriptionCollection.
ServiceDescriptionCollection myCollection = new
ServiceDescriptionCollection();
// Add the ServiceDescriptions to the collection.
myCollection.Add(myServiceDescription1);
myCollection.Add(myServiceDescription2);
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: