This documentation is archived and is not being maintained.

DataAdapter.CloneInternals Method

NOTE: This member is now obsolete.
use 'protected DataAdapter(DataAdapter)' ctor

Creates a copy of this instance of DataAdapter.

[Visual Basic]
<Obsolete("use 'protected DataAdapter(DataAdapter)' ctor", False)>
Protected Overridable Function CloneInternals() As DataAdapter
[Obsolete("use 'protected DataAdapter(DataAdapter)' ctor", false)]
protected virtual DataAdapter CloneInternals();
[Obsolete("use 'protected DataAdapter(DataAdapter)' ctor", false)]
protected: virtual DataAdapter* CloneInternals();
   Obsolete("use 'protected DataAdapter(DataAdapter)' ctor", false)
function CloneInternals() : DataAdapter;

Return Value

The cloned instance of DataAdapter.


All the commands, the TableMappings, The MissingSchemaAction, and the MissingMappingAction are cloned. However, the connections for the commands are not copied, but shared. Thus, the cloned DataAdapter can be used against the same connection as the original.

Notes to Inheritors:  When overriding CloneInternals in a derived class, be sure to call the base class's CloneInternals method.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DataAdapter Class | DataAdapter Members | System.Data.Common Namespace