private async void BatchAddField()
{
MapView mapView = MapView.Active;
if (mapView == null)
{
return;
}
FeatureLayer featureLayer = mapView.Map.Layers[0] as FeatureLayer;
System.Diagnostics.Stopwatch MyWatch = new System.Diagnostics.Stopwatch();
MyWatch.Start();
for (int i = 0; i < 10; i++)
{
await YLPub.YLProPub.AddField(featureLayer, "A" + i.ToString(), "Long", 20);
}
MyWatch.Stop();
MessageBox.Show("删除时间:" + MyWatch.ElapsedMilliseconds.ToString() + "毫秒");
//featureLayer.GetFeatureClass().GetDatastore().
}