DataAdapter.CloneInternals DataAdapter.CloneInternals DataAdapter.CloneInternals DataAdapter.CloneInternals Method

Definizione

Avviso

Questa API è ora obsoleta.

Crea una copia di questa istanza di DataAdapter.Creates a copy of this instance of DataAdapter.

protected:
 virtual System::Data::Common::DataAdapter ^ CloneInternals();
[System.Obsolete("CloneInternals() has been deprecated.  Use the DataAdapter(DataAdapter from) constructor.  http://go.microsoft.com/fwlink/?linkid=14202")]
[System.Obsolete("use 'protected DataAdapter(DataAdapter)' ctor")]
[System.Obsolete("CloneInternals() has been deprecated.  Use the DataAdapter(DataAdapter from) constructor.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual System.Data.Common.DataAdapter CloneInternals ();
abstract member CloneInternals : unit -> System.Data.Common.DataAdapter
override this.CloneInternals : unit -> System.Data.Common.DataAdapter
Protected Overridable Function CloneInternals () As DataAdapter

Restituisce

Istanza duplicata di DataAdapter.The cloned instance of DataAdapter.

Commenti

Metodo deprecato.This method is deprecated. Il DataAdapter costruttore deve essere utilizzato al posto di questo metodo.The DataAdapter constructor should be used instead of this method.

Tutti i comandi, TableMappings MissingSchemaAction, e MissingMappingAction vengono clonati.All the commands, the TableMappings, the MissingSchemaAction, and the MissingMappingAction are cloned. Tuttavia, le connessioni per i comandi non vengono copiate, ma condivise.However, the connections for the commands are not copied, but shared. Pertanto, l'oggetto clonato DataAdapter può essere utilizzato sulla stessa connessione del originale.Thus, the cloned DataAdapter can be used against the same connection as the original.

Note per gli eredi

Quando si esegue CloneInternals() l'override in una classe derivata, assicurarsi di chiamare il CloneInternals() metodo della classe base.When overriding CloneInternals() in a derived class, be sure to call the base class's CloneInternals() method.

Si applica a

Vedi anche