Поделиться через


ControlCollection.CopyTo Method (ControlElement[], Int32)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

Namespace:   Microsoft.Uii.Common
Assembly:  Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)

Syntax

public void CopyTo(
    ControlElement[] array,
    int arrayIndex
)
Public Sub CopyTo (
    array As ControlElement(),
    arrayIndex As Integer
)

Parameters

  • arrayIndex
    Type: System.Int32

    Specifies the zero-based index in array at which copying begins.

Implements

ICollection<T>.CopyTo(T[], Int32)

Exceptions

Exception Condition
ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

array is multidimensional. -or- arrayIndex is equal to or greater than the length of array. -or- The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array. -or-

See Also

ControlCollection Class
Microsoft.Uii.Common Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright