Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ConfiguredEndpointCollection Dim array() As ConfiguredEndpoint Dim arrayIndex As Integer instance.CopyTo(array, arrayIndex) |
C# | |
---|---|
public void CopyTo( ConfiguredEndpoint[] array, int arrayIndex ) |
Parameters
- array
- The one-dimensional System.Array that is the destination of the elements copied from ICollection. The System.Array must have zero-based indexing.
- arrayIndex
- The zero-based index in array at which copying begins.
Exception | Description |
---|---|
System.ArgumentNullException | array is null. |
System.ArgumentOutOfRangeException | arrayIndex is less than 0. |
System.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 is greater than the available space from arrayIndex to the end of the destination array.-or-Type T cannot be cast automatically to the type of the destination array. |
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x