PhysicalPartitionCollection.CopyTo PhysicalPartitionCollection.CopyTo PhysicalPartitionCollection.CopyTo Method

Definition

Copies the collection of objects to an array.

Overloads

CopyTo(PhysicalPartition[]) CopyTo(PhysicalPartition[]) CopyTo(PhysicalPartition[])

Copies the collection objects to a one-dimensional array.

CopyTo(PhysicalPartition[], Int32) CopyTo(PhysicalPartition[], Int32) CopyTo(PhysicalPartition[], Int32)

Copies the collection objects to a one-dimensional array starting at the specified index value.

CopyTo(PhysicalPartition[], Int32, Int32) CopyTo(PhysicalPartition[], Int32, Int32) CopyTo(PhysicalPartition[], Int32, Int32)

Copies the collection objects to a one-dimensional array, starting and ending with the specified partition numbers.

CopyTo(PhysicalPartition[]) CopyTo(PhysicalPartition[]) CopyTo(PhysicalPartition[])

Copies the collection objects to a one-dimensional array.

public:
 void CopyTo(cli::array <Microsoft::SqlServer::Management::Smo::PhysicalPartition ^> ^ array);
public void CopyTo (Microsoft.SqlServer.Management.Smo.PhysicalPartition[] array);
Public Sub CopyTo (array As PhysicalPartition())
Parameters
array
PhysicalPartition[]

An array of PhysicalPartition objects.

Examples

Using Collections

Remarks

The CopyTo operation will begin at index 0 of the specified array.

CopyTo(PhysicalPartition[], Int32) CopyTo(PhysicalPartition[], Int32) CopyTo(PhysicalPartition[], Int32)

Copies the collection objects to a one-dimensional array starting at the specified index value.

public:
 void CopyTo(cli::array <Microsoft::SqlServer::Management::Smo::PhysicalPartition ^> ^ array, int partitionNumberStart);
public void CopyTo (Microsoft.SqlServer.Management.Smo.PhysicalPartition[] array, int partitionNumberStart);
Public Sub CopyTo (array As PhysicalPartition(), partitionNumberStart As Integer)
Parameters
array
PhysicalPartition[]

An array of PhysicalPartition objects.

partitionNumberStart
Int32 Int32 Int32

An Int32 value that specifies the index value from where to start the copy.

Examples

Using Collections

CopyTo(PhysicalPartition[], Int32, Int32) CopyTo(PhysicalPartition[], Int32, Int32) CopyTo(PhysicalPartition[], Int32, Int32)

Copies the collection objects to a one-dimensional array, starting and ending with the specified partition numbers.

public:
 void CopyTo(cli::array <Microsoft::SqlServer::Management::Smo::PhysicalPartition ^> ^ array, int partitionNumberStart, int partitionNumberEnd);
public void CopyTo (Microsoft.SqlServer.Management.Smo.PhysicalPartition[] array, int partitionNumberStart, int partitionNumberEnd);
Public Sub CopyTo (array As PhysicalPartition(), partitionNumberStart As Integer, partitionNumberEnd As Integer)
Parameters
array
PhysicalPartition[]

An array of PhysicalPartition objects.

partitionNumberStart
Int32 Int32 Int32

An Int32 value that specifies the index value from where to start the copy.

partitionNumberEnd
Int32 Int32 Int32

An Int32 value that specifies the index value at which to end the copy.

Examples

Using Collections

Applies to