ServiceDescriptionCollection.Add-Methode
Fügt am Ende der ServiceDescriptionCollection die angegebene ServiceDescription hinzu.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Function Add ( _
serviceDescription As ServiceDescription _
) As Integer
'Usage
Dim instance As ServiceDescriptionCollection
Dim serviceDescription As ServiceDescription
Dim returnValue As Integer
returnValue = instance.Add(serviceDescription)
public int Add (
ServiceDescription serviceDescription
)
public:
int Add (
ServiceDescription^ serviceDescription
)
public int Add (
ServiceDescription serviceDescription
)
public function Add (
serviceDescription : ServiceDescription
) : int
Parameter
- serviceDescription
Die der Auflistung hinzuzufügende ServiceDescription.
Rückgabewert
Der nullbasierte Index, an dem der serviceDescription-Parameter hinzugefügt wurde.
Beispiel
' Create the object of 'ServiceDescriptionCollection' class.
Dim myCollection As New ServiceDescriptionCollection()
' Add 'ServiceDescription' objects.
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 = 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);
Plattformen
Windows 98, Windows 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
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
ServiceDescriptionCollection-Klasse
ServiceDescriptionCollection-Member
System.Web.Services.Description-Namespace