ServiceDescriptionCollection.Insert(Int32, ServiceDescription) Yöntem

Tanım

Belirtilen örneği ServiceDescription belirtilen ServiceDescriptionCollection sıfır tabanlı dizine ekler.

public:
 void Insert(int index, System::Web::Services::Description::ServiceDescription ^ serviceDescription);
public void Insert(int index, System.Web.Services.Description.ServiceDescription serviceDescription);
member this.Insert : int * System.Web.Services.Description.ServiceDescription -> unit
Public Sub Insert (index As Integer, serviceDescription As ServiceDescription)

Parametreler

index
Int32

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

serviceDescription
ServiceDescription

ServiceDescription koleksiyonuna eklenecek.

Özel durumlar

index Parametresi sıfırdan küçük.

-veya-

index parametresi değerinden Countbüyüktür.

Örnekler

// Insert a ServiceDescription into the collection.
myCollection->Insert( 1, myServiceDescription2 );
// Insert a 'ServiceDescription' object into the collection.
myCollection.Insert(1, myServiceDescription2);
' Insert a 'ServiceDescription' object into the collection.
myCollection.Insert(1, myServiceDescription2)

Açıklamalar

Koleksiyondaki öğe sayısı zaten koleksiyonun kapasitesine eşitse, yeni öğe eklenmeden önce iç dizi otomatik olarak yeniden yerleştirilerek kapasite ikiye katlanır.

index parametresi değerine CountserviceDescription eşitse, parametresi sonuna eklenirServiceDescriptionCollection.

Ekleme noktasından sonraki öğeler, yeni öğeye uyum sağlamak için aşağı taşınır.

Şunlara uygulanır