Dil

SearchResultReferenceCollection.CopyTo(SearchResultReference[], Int32) Yöntem

Tanım

yöntemi, CopyTo(SearchResultReference[], Int32) hedef dizinin belirtilen dizininden başlayarak koleksiyonun tamamını tek boyutlu bir diziye kopyalar.

public:
 void CopyTo(cli::array <System::DirectoryServices::Protocols::SearchResultReference ^> ^ values, int index);
public void CopyTo(System.DirectoryServices.Protocols.SearchResultReference[] values, int index);
member this.CopyTo : System.DirectoryServices.Protocols.SearchResultReference[] * int -> unit
Public Sub CopyTo (values As SearchResultReference(), index As Integer)

Parametreler

values
SearchResultReference[]

Nesneden SearchResultReferenceCollection kopyalanan öğelerin hedefi olan tek boyutlu bir dizi.

index
Int32

Kopyalamanın values başladığı sıfır tabanlı dizin.

Özel durumlar

values null başvurudur (Visual Basic Nothing).

index, sıfırdan küçüktür.

values çok boyutludur.

-veya-

Kaynaktaki SearchResultReferenceCollection öğe sayısı, hedef indexalanının sonuna kadar olan kullanılabilir alandan values büyüktür.

Kaynağın SearchResultReferenceCollection türü, tarafından valuesbelirtilen hedef dizinin türüne otomatik olarak türlenemez.

Şunlara uygulanır