Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / MetricDefinitionCollection Class / CopyTo Method
The one-dimensional array that is the destination of the elements copied from the collection. The Array must have zero-based indexing.
The zero-based index in array at which copying begins.

In This Topic
    CopyTo Method (MetricDefinitionCollection)
    In This Topic
    Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
    Syntax
    'Declaration
     
    
    Public Sub CopyTo( _
       ByVal array() As IMetricDefinition, _
       ByVal arrayIndex As Integer _
    ) 
    public void CopyTo( 
       IMetricDefinition[] array,
       int arrayIndex
    )

    Parameters

    array
    The one-dimensional array that is the destination of the elements copied from the collection. The Array must have zero-based indexing.
    arrayIndex
    The zero-based index in array at which copying begins.
    Remarks
    Elements are copied to the array in the same order in which the enumerator iterates them from the collection. The provided array must be large enough to contain the entire contents of this collection starting at the specified index. This method is an O(n) operation.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also