ServiceCollection.CopyTo(ServiceDescriptor[], Int32) Methode

Definition

Kopiert die Elemente des Elements in ICollection<T> ein Array, beginnend bei einem bestimmten Array Index.

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)

Parameter

array
ServiceDescriptor[]

Das eindimensionale Array Element, das das Ziel der elemente ist, aus ICollection<T>denen kopiert wurde. Die Array 0-basierte Indizierung muss nullbasiert sein.

arrayIndex
Int32

Der nullbasierte Index, in array dem das Kopieren beginnt.

Implementiert

Gilt für: