IsControlledByParcelFabricAsync Method
Gets whether the layer is controlled by a parcel fabric of the specified type.
Parameters
- layer
- The layer to check.
- parcelFabricType
- The controlling parcel fabric type being checked.
Return Value
True if the layer is controlled by the specified parcel fabric type. Otherwise false.
Check if layer is controlled by parcel fabric
var layer = map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault(l => l.Name == "Records");
bool isProFabric = await layer.IsControlledByParcelFabricAsync(ParcelFabricType.ParcelFabric);
bool isArcMapFabric = await layer.IsControlledByParcelFabricAsync(ParcelFabricType.ParcelFabricForArcMap);
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.