ArcFM Solution Developer Guide
Copy Method


source table from which both schema and data will be created.
predicate determining which rows from the source table will be copied to the copy table.
Copies a table to a new table using System.Data.DataTable.Clone only preserving the rows that satisfy the predicate
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function Copy( _
   ByVal src As System.Data.DataTable, _
   ByVal predicate As System.Predicate(Of DataRow) _
) As System.Data.DataTable
'Usage
 
Dim src As System.Data.DataTable
Dim predicate As System.Predicate(Of DataRow)
Dim value As System.Data.DataTable
 
value = DataTableExtensions.Copy(src, predicate)
[System.Runtime.CompilerServices.Extension()]
public static System.Data.DataTable Copy( 
   System.Data.DataTable src,
   System.Predicate<DataRow> predicate
)

Parameters

src
source table from which both schema and data will be created.
predicate
predicate determining which rows from the source table will be copied to the copy table.

Return Value

A new table with the same structure (table schemas and constraints) but with only the data that satisfies the predicate.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

DataTableExtensions Class
DataTableExtensions Members

 

 


Send Comment