ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / IsControlledByParcelFabricAsync Method
The layer to check.
The controlling parcel fabric type being checked.
Example

In This Topic
    IsControlledByParcelFabricAsync Method
    In This Topic
    Gets whether the layer is controlled by a parcel fabric of the specified type.
    Syntax
    public static Task<bool> IsControlledByParcelFabricAsync( 
       Layer layer,
       ParcelFabricType parcelFabricType
    )
    Public Shared Function IsControlledByParcelFabricAsync( _
       ByVal layer As Layer, _
       ByVal parcelFabricType As ParcelFabricType _
    ) As Task(Of Boolean)

    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.
    Example
    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);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also