Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
SortedSet(T) Class
CopyTo Method
 CopyTo Method (T[])
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4

Other versions are also available for the following:
.NET Framework Class Library
SortedSet<(Of <(T>)>)..::.CopyTo Method (array<T>[]()[])

Copies the complete SortedSet<(Of <(T>)>) to a compatible one-dimensional array, starting at the beginning of the target array.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)
Visual Basic
Public Sub CopyTo ( _
    array As T() _
)
C#
public void CopyTo(
    T[] array
)
Visual C++
public:
void CopyTo(
    array<T>^ array
)
F#
member CopyTo : 
        array:'T[] -> unit 

Parameters

array
Type: array<T>[]()[]
A one-dimensional array that is the destination of the elements copied from the SortedSet<(Of <(T>)>).
ExceptionCondition
ArgumentException

The number of elements in the source SortedSet<(Of <(T>)>) exceeds the number of elements that the destination array can contain.

ArgumentNullException

array is nullNothingnullptra null reference (Nothing in Visual Basic).

The indexing of array must be zero-based.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker