ArcFM Responder Mobile 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
 
<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
)
public function Copy( 
    src: System.Data.DataTable;
    predicate: System.Predicate
): System.Data.DataTable; static; 
System.Runtime.CompilerServices.ExtensionAttribute()
public static function Copy( 
   src : System.Data.DataTable,
   predicate : System.Predicate
) : System.Data.DataTable;
[System.Runtime.CompilerServices.Extension()]
public: static System.Data.DataTable* Copy( 
   System.Data.DataTable* src,
   System.Predicate<DataRow*>* 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataTableExtensions Class
DataTableExtensions Members

Send Feedback