EqtBaseCollection<T>.CopyTo Method
Copies all items in the collection to the provided array, starting with the provided index.
Namespace: Microsoft.VisualStudio.TestTools.Common
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
Public Overridable Sub CopyTo ( _
array As T(), _
index As Integer _
)
public virtual void CopyTo(
T[] array,
int index
)
public:
virtual void CopyTo(
array<T>^ array,
int index
)
abstract CopyTo :
array:'T[] *
index:int -> unit
override CopyTo :
array:'T[] *
index:int -> unit
public function CopyTo(
array : T[],
index : int
)
Parameters
array
Type: array<T[]An array of type T.
index
Type: Int32The index of the collection to start to copy items.
Implements
ICollection.CopyTo(UTP, Int32)
Remarks
Notes to Implementers
In derived classes, you must implement a custom version of this method by using the specific type that matches the generic type of your collection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.