//IFeatureClass 來源請自行解決 IFeatureClass featureClass = null; //獲取featureClass的各類名稱 //PS:featureClass能夠as到IDataset,所以不能只看接口名,並非只有數據集才實現IDataset接口 IDataset dataset = featureClass as IDataset; //理論上Name和BrowseName都是名稱,在不少狀況下都是同樣的,在何時同樣我也沒法徹底總結,通常能夠優先用Name string name = dataset.Name; string browseName = dataset.BrowseName; //別名 string aliasName = featureClass.AliasName; //去掉sde用戶名的名稱,由於若是是sde的featureClass,名稱前會帶所屬的sde用戶名,例如:sde.road,那通過處理後會返回road string nameWithoutSdeName = FeatureClassHelper.GetDatasetNameWithOutSDEUser(dataset); //幾何類型,包括點(point)線(polyline)面(polygon)等 esriGeometryType geometryType2 = featureClass.ShapeType; //wordspace,能夠得到featureClass所在的worksapce IWorkspace wordspace = dataset.Workspace; //wordspace,能夠得到featureClass所在的數據集,若是featureClass不在數據集內,此屬性返回null IFeatureDataset featureDataset = featureClass.FeatureDataset; //oid字段的字段名 string oidFieldName = featureClass.OIDFieldName; //幾何字段的字段名 string shapeFieldName = featureClass.ShapeFieldName; //IGeoDataset是幾何相關的接口 IGeoDataset geoDataset = featureClass as IGeoDataset; //featureClass的範圍 IEnvelope envelope = geoDataset.Extent; //空間參考 ISpatialReference spatialReference2 = geoDataset.SpatialReference;