Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
[C#]
[Obsolete("use 'protected DataAdapter(DataAdapter)' ctor", false)]
protected virtual DataAdapter CloneInternals();
[C++]
[Obsolete("use 'protected DataAdapter(DataAdapter)' ctor", false)]
protected: virtual DataAdapter* CloneInternals();
[JScript]
protected
   Obsolete("use 'protected DataAdapter(DataAdapter)' ctor", false)
function CloneInternals() : DataAdapter;

Return Value

The cloned instance of DataAdapter.

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft