Aracılığıyla paylaş


ServiceDescriptionCollection.Add(ServiceDescription) Yöntem

Tanım

Belirtilen ServiceDescription öğesini öğesinin ServiceDescriptionCollectionsonuna ekler.

public:
 int Add(System::Web::Services::Description::ServiceDescription ^ serviceDescription);
public int Add (System.Web.Services.Description.ServiceDescription serviceDescription);
member this.Add : System.Web.Services.Description.ServiceDescription -> int
Public Function Add (serviceDescription As ServiceDescription) As Integer

Parametreler

serviceDescription
ServiceDescription

ServiceDescription koleksiyonuna eklenecek.

Döndürülenler

Int32

Parametresinin ServiceDescription eklendiği sıfır tabanlı dizin.

Örnekler

// 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 the object of 'ServiceDescriptionCollection' class.
Dim myCollection As New ServiceDescriptionCollection()
' Add 'ServiceDescription' objects. 
myCollection.Add(myServiceDescription1)
myCollection.Add(myServiceDescription2)

Şunlara uygulanır