DataAdapter.CloneInternals 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
CloneInternals() has been deprecated. Use the DataAdapter(DataAdapter from) constructor. https://go.microsoft.com/fwlink/?linkid=14202
警告
CloneInternals() has been deprecated. Use the DataAdapter(DataAdapter from) constructor instead.
警告
CloneInternals() has been deprecated. Use the DataAdapter(DataAdapter from) constructor. http://go.microsoft.com/fwlink/?linkid=14202
警告
use 'protected DataAdapter(DataAdapter)' ctor
建立 DataAdapter 的這個執行個體的複本。
protected:
virtual System::Data::Common::DataAdapter ^ CloneInternals();
[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 ();
[System.Obsolete("CloneInternals() has been deprecated. Use the DataAdapter(DataAdapter from) constructor instead.")]
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")]
protected virtual System.Data.Common.DataAdapter CloneInternals ();
[System.Obsolete("use 'protected DataAdapter(DataAdapter)' ctor")]
protected virtual System.Data.Common.DataAdapter CloneInternals ();
[<System.Obsolete("CloneInternals() has been deprecated. Use the DataAdapter(DataAdapter from) constructor. https://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member CloneInternals : unit -> System.Data.Common.DataAdapter
override this.CloneInternals : unit -> System.Data.Common.DataAdapter
[<System.Obsolete("CloneInternals() has been deprecated. Use the DataAdapter(DataAdapter from) constructor instead.")>]
abstract member CloneInternals : unit -> System.Data.Common.DataAdapter
override this.CloneInternals : unit -> System.Data.Common.DataAdapter
[<System.Obsolete("CloneInternals() has been deprecated. Use the DataAdapter(DataAdapter from) constructor. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member CloneInternals : unit -> System.Data.Common.DataAdapter
override this.CloneInternals : unit -> System.Data.Common.DataAdapter
[<System.Obsolete("use 'protected DataAdapter(DataAdapter)' ctor")>]
abstract member CloneInternals : unit -> System.Data.Common.DataAdapter
override this.CloneInternals : unit -> System.Data.Common.DataAdapter
Protected Overridable Function CloneInternals () As DataAdapter
傳回
DataAdapter 的複製 (Clone) 執行個體。
- 屬性
備註
此方法已被取代。 應該使用 建 DataAdapter 構函式,而不是這個方法。
所有命令、 TableMappings、 MissingSchemaAction和 MissingMappingAction 都會複製。 不過,不會複製命令的連接,但會共用。 因此, DataAdapter 複製的 可以針對與原始相同的連接使用。
給繼承者的注意事項
在 CloneInternals() 衍生類別中覆寫時,請務必呼叫基類的 CloneInternals() 方法。
適用於
另請參閱
- ADO.NET 概觀 \(部分機器翻譯\)