DataFileCollection.CopyTo Method (DataFile , Int32)
Applies To: SQL Server 2016 Preview
Copies the collection objects to a one-dimensional array beginning at the index value specified.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
public void CopyTo(
DataFile[] array,
int index
)
public:
void CopyTo(
array<DataFile^>^ array,
int index
)
member CopyTo :
array:DataFile[] *
index:int -> unit
Public Sub CopyTo (
array As DataFile(),
index As Integer
)
Parameters
array
Type: Microsoft.SqlServer.Management.Smo.DataFile[]An array of DataFile objects.
index
Type: System.Int32An Int32 value that specifies the index position to start the copy.
Examples
Legacy Code Example
See Also
DataFileCollection Class
Microsoft.SqlServer.Management.Smo Namespace
Return to top