For Each dc As DataCol In DataTables("表A").DataCols Dim pi As System.Reflection.PropertyInfo = dc.Gettype.getproperty("IsTemporary",Reflection.BindingFlags.nonpublic Or Reflection.BindingFlags.Instance) If pi.getvalue(dc,Nothing) = False DataTables("表A").ReplaceFor(dc.Name, Nothing) End If Next