opy和克隆方法之间的区别 [英] difference between opy and clone method
本文介绍了opy和克隆方法之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
opy和克隆方法之间的区别
difference between opy and clone method
推荐答案
您是否在问数据表的复制和克隆方法
复制
are you asking about copy and clone method of data table
Copy
<br />
datatable newTableCopy;<br />
newTableCopy= existingTable.Copy();<br />
datatable.copy:
创建一个具有相同结构的新数据表-(包括已应用的方案和约束,如果有的话)包括现有表中的数据.
克隆
datatable.copy :
Creates a new datatable along with same structure - (schemas and constraints applied if any) including data in the existing table.
Clone
<br />
datatable newTableClone;<br />
newTableClone= existingTable.Clone();.<br />
datatable.Clone():
创建一个具有相同结构的新数据表,以及所有模式和约束(数据除外)
datatable.Clone():
Creates a new datatable along with same structure with all schemas and constraints excluding data
如果您进行搜索,此问题可以使用大量链接.
此处是一个.
Plenty of links available to this question if you do a search.
Here is one.
这篇关于opy和克隆方法之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文