var featLayer = MapView.Active.GetSelectedLayers().First() as FeatureLayer; QueuedTask.Run(() => { List<FieldDescription> pFieldList = featLayer.GetFieldDescriptions(); foreach (FieldDescription pField in pFieldList) { MessageBox.Show(pField.Name); } });