ServiceCollection.CopyTo(ServiceDescriptor[], Int32) Метод

Определение

Копирует элементы коллекции ICollection<T> в массив Array, начиная с указанного индекса массива Array.

public:
 virtual void CopyTo(cli::array <Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^> ^ array, int arrayIndex);
public void CopyTo (Microsoft.Extensions.DependencyInjection.ServiceDescriptor[] array, int arrayIndex);
abstract member CopyTo : Microsoft.Extensions.DependencyInjection.ServiceDescriptor[] * int -> unit
override this.CopyTo : Microsoft.Extensions.DependencyInjection.ServiceDescriptor[] * int -> unit
Public Sub CopyTo (array As ServiceDescriptor(), arrayIndex As Integer)

Параметры

array
ServiceDescriptor[]

Одномерный массив Array, в который копируются элементы из интерфейса ICollection<T>. Массив Array должен иметь индексацию, начинающуюся с нуля.

arrayIndex
Int32

Отсчитываемый от нуля индекс в массиве array, указывающий начало копирования.

Реализации

Применяется к