API Help
Eplan.EplApi.EServices Namespace / PrjMessagesCollection Class / CopyTo Method
The one-dimensional Array that is the destination of the elements copied from PrjMessagesCollection. The Array must have zero-based indexing.

In This Topic
    CopyTo Method (PrjMessagesCollection)
    In This Topic
    Copies the elements of the PrjMessagesCollection to an Array, starting at a particular Array index.
    Syntax
    public virtual void CopyTo( 
       BaseProjectMessage[] messages,
       int arrayIndex
    )
    public:
    virtual void CopyTo( 
       array<BaseProjectMessage^>^ messages,
       int arrayIndex
    ) 

    Parameters

    messages
    The one-dimensional Array that is the destination of the elements copied from PrjMessagesCollection. The Array must have zero-based indexing.
    arrayIndex
    Exceptions
    ExceptionDescription
    messages is a null reference (Nothing in Visual Basic).
    arrayIndex is less than 0.
    messages is multidimensional -or- arrayIndex is equal to or greater than the length of messages -or- The number of elements in the source PrjMessagesCollection is greater than the available space from arrayIndex to the end of the destination array.
    See Also