遍历ITable的行
- 将FeatureClass转换为ITable然后再转换为DataTable,效率较高;
- 避免使用pTable.GetRow(i).get_Value(j)时,出现hresult 0x80040952错误
private DataTable InitDataTable(IWorkspace pWorkspace)
{
if (pWorkspace == null)
{
return null;
}
DataTable pDataTable = new DataTable();
try
{
IList<ITable> pListFeaCls = GetlistTable(pWorkspace);
foreach (ITable pFeaTable in pListFeaCls)
{