Partager via


ManagementPackSubElementCollection.CopyTo Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Copies the entire collection into an array starting at the specified index.

Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim instance As ManagementPackSubElementCollection(Of T)
Dim array As T()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)

Syntax

'Declaration
Public Overridable Sub CopyTo ( _
    array As T(), _
    arrayIndex As Integer _
)
public virtual void CopyTo (
    T[] array,
    int arrayIndex
)
public:
virtual void CopyTo (
    array<T>^ array, 
    int arrayIndex
)
public void CopyTo (
    T[] array, 
    int arrayIndex
)
public function CopyTo (
    array : T[], 
    arrayIndex : int
)

Parameters

  • array
    The array to copy the collection into.
  • arrayIndex
    The index in the collection from which to start copying items into the array.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ManagementPackSubElementCollection Generic Class
ManagementPackSubElementCollection Members
Microsoft.EnterpriseManagement.Configuration Namespace