ArcFM Engine Developer Guide
Copy Method (DataTableExtensions)


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
 
<ExtensionAttribute()>
Public Shared Function Copy( _
   ByVal src As DataTable, _
   ByVal predicate As Predicate(Of DataRow) _
) As DataTable
'Usage
 
Dim src As DataTable
Dim predicate As Predicate(Of DataRow)
Dim value As DataTable
 
value = DataTableExtensions.Copy(src, predicate)
[Extension()]
public static DataTable Copy( 
   DataTable src,
   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